<?phpfunction callback($buffer)
{
// replace all the apples with oranges
return (str_replace("apples", "oranges", $buffer));
}ob_start("callback");?><html>
<body>
<p>It's like comparing apples to oranges.
</body>
</html><?phpob_end_flush();?> 就是说象echo的时候也不会直接echo,而是放到缓冲区中你在ob_flush()之前还可以改缓冲区中的内容例如处理模板的时候可以应用
{
// replace all the apples with oranges
return (str_replace("apples", "oranges", $buffer));
}ob_start("callback");?><html>
<body>
<p>It's like comparing apples to oranges.
</body>
</html><?phpob_end_flush();?> 就是说象echo的时候也不会直接echo,而是放到缓冲区中你在ob_flush()之前还可以改缓冲区中的内容例如处理模板的时候可以应用
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货