>  기사  >  백엔드 개발  >  php的ob_end_flush()函数是什么意思?

php的ob_end_flush()函数是什么意思?

WBOY
WBOY원래의
2016-06-06 20:37:481078검색

<code>ob_start();
echo ' this is first content ';

ob_start();
echo 'this is second content ';

ob_start();
echo 'this is three content ';



ob_end_flush();
ob_end_clean();
ob_end_clean();

</code>

上面的情况没有任何内容输出。
php手册上说是送出最顶层缓冲区的内容,并关闭缓存。最顶层缓冲区是指的'this is three content '的内容还是' this is first content '的内容呢?但是都应该有输出才对吧,不知道是怎么回事,请帮我解答下,谢谢。

回复内容:

<code>ob_start();
echo ' this is first content ';

ob_start();
echo 'this is second content ';

ob_start();
echo 'this is three content ';



ob_end_flush();
ob_end_clean();
ob_end_clean();

</code>

上面的情况没有任何内容输出。
php手册上说是送出最顶层缓冲区的内容,并关闭缓存。最顶层缓冲区是指的'this is three content '的内容还是' this is first content '的内容呢?但是都应该有输出才对吧,不知道是怎么回事,请帮我解答下,谢谢。

给你一个链接,希望能帮助你http://blog.csdn.net/p569354158/article/details/8120177

http://lmgtfy.com/?q=ob_end_flush

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.