News for hackers. Stuff that matters.
Re:What PHP 5.5 might look like by leftnode on Thursday July 12, 2012 @09:00AM (#4234253)
Like the article said, you can't use it with function calls because empty() itself is a construct of the language and not a function. So, empty(someFunc()) is an error. You'd have to put the return value of someFunc() in a variable and test it for emptiness, or do something like if (0 == strlen(someFunc())) { /* .. */ } which is overly verbose and not fast.

There are no comments on this comment yet.