Current Location: Home> Function Categories> ob_list_handlers

ob_list_handlers

List all output handlers in use
Name:ob_list_handlers
Category:Output buffer control
Programming Language:php
One-line Description:Returns the array of callback function names that the topmost output buffer is using.

Definition and usage

ob_list_handlers() function returns an array containing the callback function name of the ob_start() function passed to the topmost output buffer. The array may contain an element named "default output handler", which refers to PHP's native processing of the output buffer.

Example

Displays a list of handlers that are being used by the top-most output buffer:

 <?php
ob_start ( "ob_gzhandler" ) ;
print_r ( ob_list_handlers ( ) ) ;
?>

Try it yourself

grammar

 ob_list_handlers ( ) ;
Similar Functions
Popular Articles