php输出缓冲的小例子
![](//m.sbmmt.com/m/static/front/mobimages/moren/moren.png)
- 原创
- 2016-07-25 08:56:03665浏览
//开启缓冲 - ob_start();
// Output stuff (probably not this simple, might be custom CMS functions... - echo 'Print to the screen!!!';
// Get value of buffering so far - $getContent = ob_get_contents();
// Stop buffering - ob_end_clean();
// Do stuff to $getContent as needed // Use it - echo 'Now: ' . $getContent;
- ?>
复制代码 |
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。