php function error:Can't use function return value in write context

This question already has an answer here:

  • Reference - What does this error mean in PHP? 30 answers

  • From the php manual for empty():

    Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead use trim($name) == false.

    链接地址: http://www.djcxy.com/p/58438.html

    上一篇: 在写入上下文中不能使用函数返回值

    下一篇: php函数错误:不能在写入上下文中使用函数返回值