note 5659 deleted from language.types.array by philip
| From: | philip@php.net | Date: | Thu, 22 Nov 2001 19:58:46 +0000 |
| Subject: | note 5659 deleted from language.types.array by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21175@lists.php.net to get a copy of this message | ||
Checking for an entry that may not exist in an array:
<pre>
$value = @cache[$key];
if (@$value) { // a value was present for the key '$key'...
</pre>
You need both @ signs to suppress the 'uninitialized' warnings for the cache miss case.