note 64214 deleted from function.isset by nlopess
| From: | nlopess@php.net | Date: | Mon, 10 Apr 2006 17:07:51 +0000 |
| Subject: | note 64214 deleted from function.isset by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-107714@lists.php.net to get a copy of this message | ||
Note Submitter: paul dot norris at datasend dot com dot au
----
If you are developing your programs at error_reporting (E_ALL) level, you can't use isset to
test whether an array element exists; isset ($foo ['index'])
This will give you a warning every time. Instead you have to test whether the element exists;
array_key_exists ('index', $foo)