empty,还是多看看手册啊!
Note: empty() 只检测变量,检测任何非变量的东西都将导致解析错误。换句话说,后边的语句将不会起作用: empty(addslashes($name))。如果有同学像我这样写
if(empty($this->input->post('aaa')))
这样的语句,是没有错误提示,页面直接500,害我找了好一会{:soso_e103:}
本帖最后由 jeongee 于 2011-8-16 17:05 编辑
$this->input->post肯定有值,至少为false为什么不直接
if($this->input->post('aaa'))
我的提示了...
Can't use method return value in write context
页:
[1]