Can't use function return value in write context 使用empty遇到报错

Noteempty() only checks variables as anything else will result in a parse error. In other words, the following will not work: empty(trim($name)).

empty() 只检测变量,检测任何非变量的东西都将导致解析错误!

posted @ 2017-01-17 14:36  洋葱土豆随心匠  阅读(803)  评论(0编辑  收藏  举报