note 106494 added to function.isset
| From: | john at darven dot co dot uk | Date: | Mon, 14 Nov 2011 10:37:32 +0000 |
| Subject: | note 106494 added to function.isset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184425@lists.php.net to get a copy of this message | ||
It is worth noting that in order to check for the existence of a key within an array, regardless of
it's contents one should use array_key_exists() not isset().
isset() will (correctly) return false if the value of your array key is null, which may be a
perfectly valid condition.
----
Server IP: 92.48.74.199
Probable Submitter: 212.159.100.176
----
Manual Page -- http://www.php.net/manual/en/function.isset.php
Edit -- https://master.php.net/note/edit/106494
Del: integrated -- https://master.php.net/note/delete/106494/integrated
Del: useless -- https://master.php.net/note/delete/106494/useless
Del: bad code -- https://master.php.net/note/delete/106494/bad+code
Del: spam -- https://master.php.net/note/delete/106494/spam
Del: non-english -- https://master.php.net/note/delete/106494/non-english
Del: in docs -- https://master.php.net/note/delete/106494/in+docs
Del: other reasons-- https://master.php.net/note/delete/106494
Reject -- https://master.php.net/note/reject/106494
Search -- https://master.php.net/manage/user-notes.php