输入banner图图片脚本导航/分类

php输出缓冲的小例子

  1. //开启缓冲

  2. ob_start();

  3. // Output stuff (probably not this simple, might be custom CMS functions...

  4. echo 'Print to the screen!!!';

  5. // Get value of buffering so far

  6. $getContent = ob_get_contents();

  7. // Stop buffering

  8. ob_end_clean();

  9. // Do stuff to $getContent as needed

  10. // Use it

  11. echo 'Now: ' . $getContent;
  12. ?>