note 46712 deleted from function.isset by sean
| From: | sean@php.net | Date: | Thu, 21 Oct 2004 01:13:27 +0000 |
| Subject: | note 46712 deleted from function.isset by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78864@lists.php.net to get a copy of this message | ||
Note Submitter: dmjoe
----
If you use this to check for mutliple variables being set, it will ony return true if ALL of them
are set.
eg, isset( $var1, $var2, $var3 ) will only return true if all three are set. Great, that's
expected, all is well.
However, if you want to use it to check if every single one is NOT set...
eg !isset( $var1, $var2, $var3 ), it doesn't work as expected, at least to me. I would expect
this statement only to be true when ALL three variables are NOT set. However, if only one of them is
not set, it will return true.
So if you want to check for multiple variables NOT being set, each variable requires its own call
to !isset();
That definitely makes me a sad panda :(
----
Reason: useless note