Re: feature request

From: Date: Tue, 20 Mar 2001 05:24:50 +0000
Subject: Re: feature request
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-49449@lists.php.net to get a copy of this message
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@csh.rit.edu) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member


« previous php.dev (#49449) next »