1、报错机制
//控制器里面直接输出如下内容,代码不提示。TP报错机制已经开启 echo $aaaaaa; bbbbbbbbb; eco bbbbbbbb;
正常应该给出以下提示
Notice: Undefined variable: aaaaaaaaaaa in D:\wamp\www\test.php on line 2 Notice: Use of undefined constant eco - assumed ‘eco‘ in D:\wamp\www\test.php on line 3 Notice: Use of undefined constant adsfasfafsasfasfasdf - assumed ‘bbbbbbb‘ in D:\wamp\www\test.php on line 4
用Thinkphp的dump方法输出才发现
dump($aaaaaa) ; //输出NULL dump(bbbbbbbbb); //输出string(9) "bbbbbbbbb"
时间: 2024-10-24 01:17:55