← All docs

ob_get_level()

Returns the nesting level of the output buffering mechanism.

ob_get_level()

function ob_get_level(): int

Returns the nesting level of the output buffering mechanism.

Parameters: none.

Returns: int

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how ob_get_level is implemented in the compiler, see the internals page.