Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

gc_enabled

Description

The gc_enabled of Options / Information for PHP 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();
}

?>
HomeMenu