刚写的一个简单函数,用来捕获任意一个函数的输出。也是一般模版系统的一个核心吧。
代码如下:
<?
/**
* 捕获一个函数的输出
* example:get_output(array($this,'test'));
*/
function get_output($array)
{
ob_start();
call_user_func($array);
return ob_get_clean();
}
?>
awesome-anthropic:实践指南
lcu:AI Agent 工具实践指南
megaeth-gas:实践指南
SpecVibe:AI Agent 工具实践指南
lulu-board:AI Agent 工具实践指南
rea:AI Agent 工具实践指南
惊魂双胞胎重制版
香肠派对
惊魂双胞胎MOD菜单
这不是冒险
美食大厨动物风味小镇
寿司餐厅3D
闲置邮局
农场之梦收获天堂村
航空帝国大亨2026