note 7743 deleted from array_keys by ronabop
| From: | ronabop@php.net | Date: | Fri, 18 Aug 2000 04:20:25 +0000 |
| Subject: | note 7743 deleted from array_keys by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2351@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) ??