note 71794 deleted from function.array-key-exists by felipe
| From: | felipe@php.net | Date: | Sun, 30 Dec 2007 20:54:06 +0000 |
| Subject: | note 71794 deleted from function.array-key-exists by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134544@lists.php.net to get a copy of this message | ||
Note Submitter: mikael dot knutsson at gmail dot com
----
You're right, I'm not sure what I did wrong since I had a problem where array_key_exists
returned true, while
<?php
$keys = array_keys( $array );
var_dump( in_array( 'key', $keys ) );
?>
returned false. (Which does the exact same thing) I probably either messed up the array, or the
order in one of the array calls.
I rewrote the entire section where I had this problem (which was probably a good idea anyway), so I
don't have any demonstration code.