Direct array_keys() key value
Posted: Fri Aug 27, 2004 12:32 pm
Code: Select all
$arr=array("a","b","c","d","e");
print_r (array_keys($arr,"d"));But somehow I want the value 3 directly.
This doesnt work....but something like this : echo (array_keys($arr,"d")[0]);
Any way to do this ?
Thanks