PHP 5.6.16 is available


(PHP 5, PHP 7 >= 5.3.0, PHP 7)

gc_collect_cyclesForces collection of any existing garbage cycles


int gc_collect_cycles ( void )

Forces collection of any existing garbage cycles.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns number of collected cycles.

Vedere anche:

add a note add a note

User Contributed Notes 1 note

4 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:

Hope it helps!
To Top