博客主机

Warning: Use of undefined constant hot - assumed 'hot' (this will throw an Error in a future version of PHP) in /www/wwwroot/itzyr/www/wp-content/themes/Ality/inc/sticky-cat.php on line 5

[转]php ob_start()、ob_end_flush()和ob_end_clean()多级缓冲

[转]php ob_start()、ob_end_flush()和ob_end_clean()多级缓冲
ob_start() 和 ob_end_flush() 是一对很好的搭档,可以实现对输出的控制。当成一对出现理解起来就没什么问题,但是当他们两个各自出现次数增加时,就比较难理解了. <?php ob_start(); echo 'level 1<br/> '; ob_start(); echo   'level 2<br/> '; ob_start(); echo  'level 3<br/> '; ob_end_flush(); ob_end_flush(); ob_end_flush(); 很明显,结果为: level 1 level 2 leve...
博客主机