I have this $combo array :
Array ( [0] => 11.3 [1] => 1.3 [2] => 1.3 [3] => 1.3 ) then I try to process that array using foreach loop :
foreach ($combo as $value) { $key = array_keys($combo, $value); } the $key return unexpected on key 1, 2, 3 because I have duplicate value : 1.3
I want to have exact array key for each value. how to do this?
foreach ($combo as $key => $value)