mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147761 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
da2d159c9b
commit
f542a3c6db
1 changed files with 39 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry id="function.ob-list-handlers">
|
||||
<refnamediv>
|
||||
<refname>ob_list_handlers</refname>
|
||||
|
@ -14,7 +14,44 @@
|
|||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This will return an array with the output handlers in use (if any).
|
||||
This will return an array with the output handlers in use (if any). If
|
||||
<link
|
||||
linkend="ini.output-buffering">output_buffering</link> is
|
||||
enabled, <function>ob_list_handlers</function> will return "default
|
||||
output handler".
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ob_list_handlers</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
//using output_buffering=On
|
||||
print_r(ob_list_handlers());
|
||||
ob_end_flush();
|
||||
|
||||
ob_start("ob_gzhandler");
|
||||
print_r(ob_list_handlers());
|
||||
ob_end_flush();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
The above example will output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[0] => default output handler
|
||||
)
|
||||
Array
|
||||
(
|
||||
[0] => ob_gzhandler
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>ob_end_clean</function>,
|
||||
|
|
Loading…
Reference in a new issue