<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.outcontrol.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.ob-flush.php',
    1 => 'ob_flush',
    2 => '冲刷（发送）活动输出处理程序的返回值',
  ),
  'up' => 
  array (
    0 => 'ref.outcontrol.php',
    1 => '输出控制 函数',
  ),
  'prev' => 
  array (
    0 => 'function.ob-end-flush.php',
    1 => 'ob_end_flush',
  ),
  'next' => 
  array (
    0 => 'function.ob-get-clean.php',
    1 => 'ob_get_clean',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/outcontrol/functions/ob-flush.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ob-flush" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ob_flush</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ob_flush</span> &mdash; <span class="dc-title">冲刷（发送）活动输出处理程序的返回值</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ob-flush-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ob_flush</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   该函数调用输出处理程序（使用 <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flush">PHP_OUTPUT_HANDLER_FLUSH</a></code></strong>
   flag），冲刷（发送）其返回值并丢弃活动输出缓冲区的内容。
  </p>
  <p class="para">
   该函数不会像 <span class="function"><a href="function.ob-end-flush.php" class="function">ob_end_flush()</a></span> 或 <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span> 那样关闭活动输出缓冲区。
  </p>
  <p class="para">
   如果没有以 <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flushable">PHP_OUTPUT_HANDLER_FLUSHABLE</a></code></strong> flag 启动的活动输出缓冲区，<span class="function"><strong>ob_flush()</strong></span> 将失败。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ob-flush-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ob-flush-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>， 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.ob-flush-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   如果函数失败会生成 <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ob-flush-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ob-start.php" class="function" rel="rdfs-seeAlso">ob_start()</a> - 打开输出控制缓冲</span></li>
    <li><span class="function"><a href="function.ob-get-contents.php" class="function" rel="rdfs-seeAlso">ob_get_contents()</a> - 返回输出缓冲区的内容</span></li>
    <li><span class="function"><a href="function.ob-end-flush.php" class="function" rel="rdfs-seeAlso">ob_end_flush()</a> - 冲刷（发送）活动输出处理程序的返回值，并关闭活动输出缓冲区</span></li>
    <li><span class="function"><a href="function.ob-get-flush.php" class="function" rel="rdfs-seeAlso">ob_get_flush()</a> - 冲刷（发送）活动输出处理程序的返回值，返回活动输出缓冲区的内容并将其关闭</span></li>
    <li><span class="function"><a href="function.ob-clean.php" class="function" rel="rdfs-seeAlso">ob_clean()</a> - 清空（擦掉）活动输出缓冲区的内容</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>