I have an array like this and what I want to know is for example search the value 9375 in this array and then get the others value in this key.
Array
(
[0] => Array
(
[0] => Afghanistan
[1] => 93
[2] => 0.2
[3] => 2015-06-09
)
[1] => Array
(
[0] => Afghanistan Cdma Afghan Telecom
[1] => 9375
[2] => 0.22
[3] => 2015-03-31
)
[2] => Array
(
[0] => Afghanistan mobile
[1] => 937
[2] => 0.158
[3] => 2015-03-31
)
I tried to get the key like this but it doesnt works
$position = array_search('937', $array);
echo "<td>".$array[$position][0]."</td>";
echo "<td>".$array[$position][1]."</td>";
echo "<td>".$array[$position][2]."</td>";
echo "<td>".$array[$position][3]."</td>";