PHP 选项/信息 函数
在线手册:中文 英文
PHP手册

gc_collect_cycles

(PHP 5 >= 5.3.0)

gc_collect_cyclesForces collection of any existing garbage cycles

说明

int gc_collect_cycles ( void )

Forces collection of any existing garbage cycles.

参数

此函数没有参数。

返回值

Returns number of collected cycles.

参见


PHP 选项/信息 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Forces collection of any existing garbage cycles

用户评论:

Mason (08-Sep-2011 12:22)

(Since this function wasn't documented as of the date I left this note...)

If you came here looking for documentation, allow me to point you instead to a section in the user manual about garbage collection that includes a bit at the end about when you would use this feature and what it will actually do: http://php.net/manual/en/features.gc.collecting-cycles.php

Hope it helps!