PHP.nl

gc_enabled

gc_enabled

Returns status of the circular reference collector

bool **gc_enabled**

Returns status of the circular reference collector.

Returns true if the garbage collector is enabled, false otherwise.

Voorbeeld: A example

<?php
if(gc_enabled()) gc_collect_cycles();
?>

Garbage Collection