How about anyempty($var1, $var2, $var3, ...) ?

Jevon

----- Original Message ----- 
From: "Ron Korving" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 21, 2004 12:21 AM
Subject: Re: [PHP-DEV] suggestion: empty() with infinite parameters like
isset()


> Maybe it was a bad example. Writing "data missing" I was thinking that at
> least one variable should be set.
>
> Ron
>
> "Derick Rethans" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > 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
>
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to