note 7743 added to array_keys
| From: | marksg at chello dot nl | Date: | Sun, 13 Aug 2000 16:26:53 +0000 |
| Subject: | note 7743 added to array_keys | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1797@lists.php.net to get a copy of this message | ||
In the above example, they say:
If the optional search_value is specified, then only the keys for that value are returned.
Otherwise, all the keys from the input are returned.
$array = array (1, 100, 2, 100);
array_keys ($array, 100); // returns array (0, 2)
should the return then be: array (1, 3) in stead of: array (0, 2) ??
http://www.php.net/manual/function.array-keys.php