php输出缓冲的小例子
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-07-25 08:56:03
-
-
//开启缓冲
- 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
作者最新文章
-
2025-02-25 17:12:10
-
2025-02-25 17:10:11
-
2025-02-25 17:07:11
-
2025-02-25 16:38:09
-
2025-02-25 15:26:10
-
2025-02-24 12:36:12
-
2025-02-24 12:11:09
-
2025-02-24 12:06:10
-
2025-02-24 12:04:13
-
2025-02-24 12:03:10