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() 只检测变量,检测任何非变量的东西都将导致解析错误!

原文地址:https://www.cnblogs.com/yangcclg/p/6293009.html