note 32122 added to function.isset
| From: | oirolfa at hotmail dot com | Date: | Sun, 18 May 2003 01:05:05 +0000 |
| Subject: | note 32122 added to function.isset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48310@lists.php.net to get a copy of this message | ||
Checking if a variable is set using isset() is the same as checking if a variable is different from
NULL.
if (isset($a)) { ... }
// equivalent to
if ($a !== NULL) { ... } // Note the !== operator
--
Manual Page -- http://www.php.net/manual/en/function.isset.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32122
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32122&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32122&report=yes