Get min value in PHP array and get corresponding key

Viewed 29143

I have an array:

Array ( [0] => 3 [1] => 0 )

I want PHP code that returns 1 because 1's value is the lowest.

How do I do this?

4 Answers
Related