Home > PHP > Function > Output Control > ob_get_level()

ob_get_level()

ob_get_level - Return the nesting level of the output buffering mechanism

Syntax

int ob_get_level ()

Arguments

-

Description

Returns the nesting level of the output buffering mechanism.

Version

PHP 4.2.0, 5

Return value

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