I have this:
Array
(
[carx] => Array
(
[no] => 63
)
[cary] => Array
(
[no] => 64
)
)
How can I find the key carx
when I have the no=63
? I know how to use array_search()
but this one is a bit tricky.
Like I can find key name id
while I have 63
But this one is a bit tricky.
foreach ($array as $i => $v) $array[$i] = $v['no'];
$key = array_search(63, $array);