ob_start();//buf1
echo 'multiple';
ob_start();//buf2
echo 'bufferswork';
$buf2 = ob_get_contents();
ob_end_clean();
$buf1 = ob_get_contents();
ob_end_clean();
echo $buf1;
echo '';
echo $buf2;
转载于:https://www.cnblogs.com/alex-13/p/4188610.html
相关资源:JAVA上百实例源码以及开源项目