parent root
PHP: gc_collect_cycles - Manual

gc_collect_cycles

(PHP 5 >= 5.3.0, PHP 7)

gc_collect_cyclesForces collection of any existing garbage cycles

Description

gc_collect_cycles ( void ) : int

Forces collection of any existing garbage cycles.

Parameters

This function has no parameters.

Return Values

Returns number of collected cycles.

add a noteadd a note

User Contributed Notes 1 note

up
115
Mason
8 years ago
(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!
To Top
parent root