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

ob_get_status()

ob_get_status - Get status of output buffers

Syntax

array ob_get_status (bool $full_status)

Arguments

  • full_status - TRUE to return all active output buffer levels. If FALSE or not set, only the top level output buffer is returned.

Description

ob_get_status() returns status information on either the top level output buffer or all active output buffer levels if full_status is set to TRUE.

Version

PHP 4.2.0, 5

Return value

If called without the full_status parameter or with full_status = FALSE a simple array with the following elements is returned: Array( [level] => 2 [type] => 0 [status] => 0 [name] => URL-Rewriter [del] => 1) Simple ob_get_status() results Key: level Value: Output nesting level Key: type Value: PHP_OUTPUT_HANDLER_INTERNAL (0)or PHP_OUTPUT_HANDLER_USER (1) Key: status Value: One of PHP_OUTPUT_HANDLER_START(0), PHP_OUTPUT_HANDLER_CONT(1) or PHP_OUTPUT_HANDLER_END(2) Key: name Value: Name of active output handler or ' default output handler' if none is set Key: del Value: Erase-flag as set by ob_start()