note 36519 deleted from function.array-keys by pollita
| From: | pollita@php.net | Date: | Mon, 13 Oct 2003 19:41:01 +0000 |
| Subject: | note 36519 deleted from function.array-keys by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58554@lists.php.net to get a copy of this message | ||
Note Submitter: Conrad
----
I really needed to get just the key from the array from only knowing the contents, I dunno if anyone
else ever needed just the key but here is how I did it hopefully this will save someone the time I
spent :)
Function Get_Array_Key($MyArray,$MyString) {
list($lngKey) = Array_Keys($MyArray,$MyString);
Return $lngKey;
}