Date: 03/20/01
- Next message: bill.roberts <email protected>: "[PHP-DEV] PHP 4.0 Bug #9856: Missing run path in shared object library"
- Previous message: Jon Parise: "Re: [PHP-DEV] feature request"
- In reply to: Jon Parise: "Re: [PHP-DEV] feature request"
- Next in thread: Phil Driscoll: "Re: [PHP-DEV] feature request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think it makes sense to have empty() behave the same as isset() (they are
brother functions).
empty($a, $b, $c) would return 0 if non are empty and 1 if one of those
variables is empty.
Andi
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 (jon <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: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: bill.roberts <email protected>: "[PHP-DEV] PHP 4.0 Bug #9856: Missing run path in shared object library"
- Previous message: Jon Parise: "Re: [PHP-DEV] feature request"
- In reply to: Jon Parise: "Re: [PHP-DEV] feature request"
- Next in thread: Phil Driscoll: "Re: [PHP-DEV] feature request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

