|
ob_list_handlersList all output handlers in use Description
array ob_list_handlers()
Lists all output handlers in use. ParametersThis function has no parameters. Return ValuesThis will return an array with the output handlers in use (if any).
If output_buffering is enabled
and no output_handler is set,
or no callback or
If a callable was passed to ob_start,
the fully qualified name
of the callable is returned.
If the callable is an object implementing
__invoke(),
the fully qualified name
of the object's __invoke()
method is returned.
If the callable is a Closure,
Examples
Example #1 ob_list_handlers example
The above example will output: array(1) { [0]=> string(22) "default output handler" } array(1) { [0]=> string(22) "default output handler" } array(1) { [0]=> string(7) "print_r" } array(1) { [0]=> string(19) "userDefinedFunction" } array(1) { [0]=> string(17) "Closure::__invoke" } array(1) { [0]=> string(17) "Closure::__invoke" } array(1) { [0]=> string(17) "Closure::__invoke" } array(1) { [0]=> string(21) "MyClass::staticHandle" } array(1) { [0]=> string(15) "MyClass::handle" } array(1) { [0]=> string(17) "MyClass::__invoke" } See Also
|