note 33305 deleted from function.isset by torben
| From: | torben@php.net | Date: | Sun, 22 Jun 2003 00:11:20 +0000 |
| Subject: | note 33305 deleted from function.isset by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50802@lists.php.net to get a copy of this message | ||
Note Submitter: Rob at MatchedUp.com
----
Something I've discovered that may be causing others some unneeded distress is that the
following code (for an unknown reason) does not work:
<CODE>
if (isset($db->f("someKey")))
{
// do something with this key/variable combo
}
</CODE>
However, it will work if you initialize a new variable to use the value stored in
$db->f("someKey"), like so:
<CODE>
$someKey = $db->f("someKey");
if (isset($someKey) && $someKey!='')
{
// do something with this variable stuff
}
</CODE>