Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-21 Thread Derick Rethans
On Thu, 21 Oct 2004, David Vance wrote: > but how would you find out which var's, if any, are empty or not set? > otherwise, would seem not very useful... Right, please take this discussion off-list as we have had it in the past and came to the conclusion that there is no way to do this in a sane

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-21 Thread David Vance
uot;and" situation. > > Ron > > > "Jevon Wright" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> How about anyempty($var1, $var2, $var3, ...) ? >> >> Jevon >> >> - Original Message - >> From: "Ron

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-21 Thread Ron Korving
You're right, the only right way would be to introduce a new function like the isval() I suggested in my reply to Jevon. Ron "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There is a big difference between isset() and empty() and it was discussed > a lot in the past.

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-21 Thread Ron Korving
age ----- > 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.

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Andi Gutmans
There is a big difference between isset() and empty() and it was discussed a lot in the past. You'll see both sides to the coin after reading the archives. It's really a problem make a call on this one. Andi At 01:13 PM 10/20/2004 +0200, Ron Korving wrote: Okay, I don't wanna make remarks that m

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Jevon Wright
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()

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Ron Korving
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 bee

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Derick Rethans
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 the

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Ron Korving
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. Ron "Derick Rethans" <[EMAIL PROTECTED]> schreef in bericht n

Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Derick Rethans
On Wed, 20 Oct 2004, Ron Korving wrote: > I think it would be a good idea to apply the idea of infinite parameters > that's been used with isset(), so one can test multiple variables: > > if (empty($var1, $var2, $var3)) echo "data missing"; We discussed this before and we didn't want to agree if

[PHP-DEV] suggestion: empty() with infinite parameters like isset()

2004-10-20 Thread Ron Korving
I think it would be a good idea to apply the idea of infinite parameters that's been used with isset(), so one can test multiple variables: if (empty($var1, $var2, $var3)) echo "data missing"; I hope someone will agree with me and add this feature. Thanks, Ron -- PHP Internals - PHP Runtime D