Re: [RFC] unset(): return bool if the variable has existed

From: Date: Wed, 06 Mar 2013 21:36:28 +0000
Subject: Re: [RFC] unset(): return bool if the variable has existed
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Florin


Would it make more sense to return an array with keys the name of the
> variables that were unset and the result for each of them? This way
> one could better handle 'false' being returned.
>
> I'm not sure if it's possible or not, I didn't had the time to check
> out the patch.
>

If you need that much granularity, just call unset() individually for each
one...

Anthony


Thread (21 messages)

« previous php.internals (#66504) next »