Returns status of the circular reference collector
Syntax
gc_enabled(): bool
Return
Returns true if the garbage collector is enabled, false otherwise.
Examples
1
<? $return = gc_enabled(); var_export($return); ?>
true
2
<? if(gc_enabled()) { gc_collect_cycles(); } ?>