array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ob-flush.php', 1 => 'ob_flush', ), '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', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
ob_flush — 冲刷(发送)活动输出处理程序的返回值
该函数调用输出处理程序(使用 PHP_OUTPUT_HANDLER_FLUSH
flag),冲刷(发送)其返回值并丢弃活动输出缓冲区的内容。
该函数不会像 ob_end_flush() 或 ob_get_flush() 那样关闭活动输出缓冲区。
如果没有以 PHP_OUTPUT_HANDLER_FLUSHABLE
flag 启动的活动输出缓冲区,ob_flush() 将失败。
此函数没有参数。
如果函数失败会生成 E_NOTICE
。