I wanna get the numeric index for a multi-dimensional associative array...

I have like

$myArray = array(
                        "one" => "something",
                        "two" => "otherthing",
                        "three" => "whatever"
                );

I want to, given the key (or value), it returns me the numeric index for 
that ocurrence... examples:

given "one" -> returns 0
given "whatever" -> returns 2
given "two" -> returns 1
given "four" -> returns NULL or false...

anyone?
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to