说明
调试变量输出后中止程序的执行
示例
$memberModel = Model('Demo'); $memberList = $memberModel -> memberList(); halt($memberList); echo '这里的信息是看不到的';
输出
array (size=4) 0 => array (size=3) 'id' => int 0 'name' => string 'thinkphp' (length=8) 'score' => int 1 1 => array (size=3) 'id' => int 4 'name' => string 'zhangsan4' (length=9) 'score' => int 0 2 => array (size=3) 'id' => int 5 'name' => string 'zhangsan5' (length=9) 'score' => int 0 3 => array (size=3) 'id' => int 6 'name' => string 'zhangsan6' (length=9) 'score' => int 0
本文转自 素颜猪 51CTO博客,原文链接:http://blog.51cto.com/suyanzhu/1897287