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

ob_get_level

Description

The ob_get_level of Output Control for PHP return the nesting level of the output buffering mechanism.

Syntax

ob_get_level(): int

Return

Returns the level of nested output buffering handlers or zero if output buffering is not active.

Examples

1 · return

<?

ob_start();

$return = ob_get_level();

echo $return;

?>
2
HomeMenu