Re: suggestion: empty() with infinite parameters like isset()
| From: | Ron Korving | Date: | Wed, 20 Oct 2004 11:21:07 +0000 |
| Subject: | Re: suggestion: empty() with infinite parameters like isset() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13416@lists.php.net to get a copy of this message | ||
Maybe it was a bad example. Writing "data missing" I was thinking that at
least one variable should be set.
Ron
"Derick Rethans" <derick@php.net> schreef in bericht
news:Pine.LNX.4.58.0410201315360.1991@localhost...
> On Wed, 20 Oct 2004, Ron Korving wrote:
>
> > Okay, I don't wanna make remarks that may have already been made
earlier,
> > but I think it should be "all should be empty", because it works exactly
the
> > same for isset(), and apparently, a decision was made to give isset()
that
> > feature.
>
> Right, but then your example would already no longer have worked:
>
> if (empty($var1, $var2, $var3)) echo "data missing";
>
> so there is no point in adding it like that.
>
> Derick
>
> --
> Derick Rethans
> http://derickrethans.nl |
> http://ez.no | http://xdebug.org