<div>passing </div>
<?
echo "here...";
// 代码 清除第一个echo的输出内容的“代码”
echo "there...";
exit;
?>
有没有办法 只输出第二个echo的内容‘there...’(前提是两个echo代码都不能删除,之前还有必须得输出的内容(顶部的div),而只想得到第二个echo输出的内容‘there...’)
<?
ob_start();
echo "here...";
ob_clean();
ob_end_flush();
echo "there...";
exit;
?>
这样写是可以实现的.就是输出时缓冲一下, 再把缓存删了