I think it makes sense to have empty() behave the same as isset() (they are
empty($a, $b, $c) would return 0 if non are empty and 1 if one of those
variables is empty.
At 12:22 AM 3/20/2001 -0500, Jon Parise wrote:
>On Mon, Mar 19, 2001 at 11:35:31PM +0200, Zeev Suraski wrote:
> > Fact is, using isset() with multiple arguments is much more necessary in
> > real world than other is_*() functions. isset() is very often used to
> > validate user input.
>Then should the same argument be applied to empty(), too?
>For the record, I'm perfectly happy with things the way they are. If
>I need to test the existence of two variables, I'm content doing so
>(verbosely) with two isset() calls.
>Admittedly, I don't see anything wrong or dangerous with extending
>isset() to test multiple variables, but I just hope this doesn't go
>too far into the syntactic sugar realm.
>Jon Parise ([EMAIL PROTECTED]) . Rochester Inst. of Technology
>http://www.csh.rit.edu/~jon/ : Computer Science House Member
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]