Example
Show a list of handlers being used by the topmost output buffer:
html
<?php
ob_start("ob_gzhandler");
print_r(ob_list_handlers());
?>
Definition and Usage
The ob_list_handlers() function returns an array with the names of the callback functions that were passed into the ob_start() function of the topmost output buffer. The array may have an element named "default output handler" which refers to PHP's native handling of output buffers.
Syntax
text
ob_list_handlers();
Technical Details
| Return Value: | Returns an array of names of the functions that are being used to handle the output |
|---|---|
| PHP Version: | 4.3+ |