note 98211 deleted from language.types.array by danbrown
| From: | danbrown@php.net | Date: | Tue, 01 Jun 2010 15:07:30 +0000 |
| Subject: | note 98211 deleted from language.types.array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169805@lists.php.net to get a copy of this message | ||
Note Submitter: frantik
----
Instead of using isset($arrayName['key']), one should use
array_key_exists('key', $arrayName);
isset($arrayName['key']) will throw a warning if the key does not exist.