Home  >  Article  >  Backend Development  >  关于ob_get_clean的疑义!

关于ob_get_clean的疑义!

WBOY
WBOYOriginal
2016-06-13 11:57:55787browse

关于ob_get_clean的疑问!!

<?php<br />echo "hello word";<br />$out=ob_get_clean();<br />echo $out." everyone";<br />?>

这段程序执行结果是 hello word everyone
奇怪的是为什么可以不用声明 ob_start()
------解决方案--------------------
缓冲区默认是打开的
你可用 ob_get_level() 观察到

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn