retweet

原来几组ob_start/ob_get_contents是可以嵌套的

一直在使用ob_start和ob_get_contents时非常小心,避免嵌套使用,今天试了一下,原来几组ob_start/ob_get_contents是可以嵌套的。下面是例子:

It's like comparing apples to oranges.

运行结果如下: [~/]^o^:php test.php string(77) "

It's like comparing apples to oranges.

" string(18) "}}}}}}}}"
--EOF--

若无特别说明,本站文章均为原创,转载请保留链接,谢谢

本文地址: http://www.dulao5.com/php/2006/02/08/ob-start-in-php.textile