❮ PHP Output Control Functions
Show a list of handlers being used by the topmost output buffer:
<?php
ob_start("ob_gzhandler");
print_r(ob_list_handlers());
?>
Try it Yourself »
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.
ob_list_handlers();
Return Value: | Returns an array of names of the functions that are being used to handle the output |
---|---|
PHP Version: | 4.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!