note 62223 deleted from function.key by bjori
| From: | bjori@php.net | Date: | Tue, 18 Apr 2006 07:48:38 +0000 |
| Subject: | note 62223 deleted from function.key by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108381@lists.php.net to get a copy of this message | ||
Note Submitter: clement dot genzmer at gmail dot com
----
The key_in_array function does not work :
$tab["v1"] = 0 ;
$tab["v2"] = 0 ;
key_in_array("v1",$tab) ==> false !!
Use array_key_exists which exists !!