Re: Numeric Index of an array
| From: | Marek Kilimajer | Date: | Sun, 02 May 2004 20:23:23 +0000 |
| Subject: | Re: Numeric Index of an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185155@lists.php.net to get a copy of this message | ||
Natascha Chrobok wrote:
How can I get the numeric Index of an array when the index is a string?string indexes don't have numeric indexes. they are in order however, if you want to find the order of a value, use: echo array_search(array_search("my second value", $myArray), array_keys($myArray));