ob_start:將所有來自PHP程序的非文件頭信息保存在內部緩沖區。可以使用ob_end_flush()或fulsh()輸出緩沖區內容
ob_end_flush():輸出緩沖區內容,關閉緩沖區
fulsh():輸出緩沖區內容,刷新緩沖區
如:
fplot函數、<?php
ob_start();//打開緩沖區
echo "hello";//輸出到緩沖區
header("location:index.php");//把瀏覽器重定向到index.php
ob_end_flush();//輸出全部內容到瀏覽器
startswith函數、?>