-
-
//开启缓冲
- 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
立即学习“PHP免费学习笔记(深入)”;
// Use it
- echo 'Now: ' . $getContent;
- ?>
-
复制代码
|
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn