Welcome Guest, Not a member yet? Register   Sign In
a couple of potentially useful helpers
#7

(This post was last modified: 10-31-2014, 11:32 AM by Narf.)

(10-31-2014, 07:59 AM)Hobbes Wrote: i created that helper quite awhile ago when i was getting errors passing nulls into the empty function. It was quite irritating, so basically it was put in as a work around for the problem. Still to this day not sure why i was getting that error with the empty function but yeah, that is why i wrote it.

You might've had problems with passing function return values directly to empty():

PHP Code:
// This only works on PHP 5.5+
empty(foo()); 

This has nothing to do with nulls though.
Reply


Messages In This Thread
RE: a couple of potentially useful helpers - by Narf - 10-31-2014, 11:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB