I have an array like this:
Array ( [2] => -100 [0] => -7.1 )
It is not ordered because if I sort this array, it will become this array into this Array ( [0] => -7.1 [1] => -100) and I am not looking for that, I just want to know the index value of an array like that....
In this case if I use the php function to know the last index it shows me 0 BUT althought it's in the last position the last index really is 2, how can I get 2 and not 0?
I am not using PHP 7, I am using PHP 5
Thanks