<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="outcontrol.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="outcontrol.examples.html">Examples</a></div> <div class="up"><a href="book.outcontrol.html">Output Control</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="outcontrol.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are always available as part of the PHP core. </p> <dl> <dt id="constant.php-output-handler-start"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_START</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that output buffering has begun. </p> </dd> </dt> <dt id="constant.php-output-handler-write"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_WRITE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that the output buffer is being flushed, and had data to output. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-flush"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_FLUSH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that the buffer has been flushed. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-clean"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_CLEAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that the output buffer has been cleaned. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-final"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_FINAL</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that this is the final output buffering operation. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-cont"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_CONT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that the buffer has been flushed, but output buffering will continue. </p> <p class="para"> As of PHP 5.4, this is an alias for <strong><code>PHP_OUTPUT_HANDLER_WRITE</code></strong>. </p> </dd> </dt> <dt id="constant.php-output-handler-end"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_END</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Indicates that output buffering has ended. </p> <p class="para"> As of PHP 5.4, this is an alias for <strong><code>PHP_OUTPUT_HANDLER_FINAL</code></strong>. </p> </dd> </dt> <dt id="constant.php-output-handler-cleanable"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_CLEANABLE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Controls whether an output buffer created by <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span> can be cleaned. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-flushable"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_FLUSHABLE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Controls whether an output buffer created by <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span> can be flushed. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-removable"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_REMOVABLE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Controls whether an output buffer created by <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span> can be removed before the end of the script. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> <dt id="constant.php-output-handler-stdflags"> <span class="term"> <strong><code>PHP_OUTPUT_HANDLER_STDFLAGS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> The default set of output buffer flags; currently equivalent to <strong><code>PHP_OUTPUT_HANDLER_CLEANABLE</code></strong> | <strong><code>PHP_OUTPUT_HANDLER_FLUSHABLE</code></strong> | <strong><code>PHP_OUTPUT_HANDLER_REMOVABLE</code></strong>. </p> <p class="para"> Available since PHP 5.4. </p> </dd> </dt> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="outcontrol.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="outcontrol.examples.html">Examples</a></div> <div class="up"><a href="book.outcontrol.html">Output Control</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>