Can't use function return value in write context 使用empty遇到報錯

洋蔥土豆隨心匠發表於2017-01-17

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() 只檢測變數,檢測任何非變數的東西都將導致解析錯誤!

相關文章