Re: [PHP-DEV] feature request

2001-03-19 Thread Andi Gutmans
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

[PHP-DEV] feature request

2001-03-18 Thread Cameron
would be nice if isset would act the same as unset, being able to feed it more than 1 var at a time ie. if ( isset ( $blah1, $blah2 ) ) { blah blah } i get sick of typing it these days and that would cut down the amount of typing a fair bit ;) if there is something already that does this let

RE: [PHP-DEV] feature request

2001-03-18 Thread Chris Newbill
This would not be a bad idea IMHO and I would use it for some things. The functionality would be inclusive not exclusive. So isset($var1, $var2, $var3) would only return true if $var1, $var2, and $var3 are set and false otherwise. So If I had a form passing $name, $email, $phone: example #1

RE: [PHP-DEV] feature request

2001-03-18 Thread Andi Gutmans
It should be possible to do this. I'll look into it. But I also need to think about how much sense it makes :) Today you're asking for isset(...,...,...). Tomorrow you will ask to know which one was not set if it failed. So I hope what youreally want is only the first. Andi At 09:42 PM

Re: [PHP-DEV] feature request

2001-03-18 Thread Cameron
personally all i want is isset(blah,blah,blah) im dealing with 18 items from a form here and im getting sick of typing them all ;) im not too worried about which one isnt set because i just display a not all fields filled in and use a javascript back button. simple? thats all i want but if you

RE: [PHP-DEV] feature request

2001-03-18 Thread Chris Newbill
s multiple variables as one inclusive logic test. ( ) Don't touch my beloved functionality vile creatures! -Chris From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP-DEV] feature request It should be possible to do this. I'll look into it. But I also need to think about how

[PHP-DEV] [feature request] return name of current function

2001-02-23 Thread Martin Jansen
Hi Is there anything that is speaking against a function or a constant, that contains the name of the current function? This might be especially useful for situations like ?php function print_error($name) { echo "An error occured in ".$name; } function foo() { if ($error)

[PHP-DEV] Feature Request: PHP_AUTH_REALM builtin var

2001-01-30 Thread Chris A. Henesy
For querying the current status of http authentication, PHP has PHP_AUTH_USER, PHP_AUTH_PW, and even PHP_AUTH_TYPE. The last piece of the puzzle is missing however since there is no PHP_AUTH_REALM -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED]

<    1   2