PHP ob_list_handlers() Function

PHP ob_implicit_flush() Function
PHP ob_start() Function

In this article, you will learn how to get the names of the callback functions that are passed to the ob_strt() function of the very top buffer. 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.

what is the syntax of the OB_LIST_HANDLERS() function in php?

ob_list_handlers();

examples of the OB_LIST_HANDLERS() function

Example 1. In this example, we show a list of handlers being used by the topmost output buffer.

<?php
ob_start("ob_gzhandler");
print_r(ob_list_handlers());
?>
PHP ob_implicit_flush() Function
PHP ob_start() Function
en English
X
Scroll to Top