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 internals+get-66504@lists.php.net 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

« previous php.internals (#66504) next »