Forum Moderators: coopster
I have an array with following values:
Array (
[0] => 24.87611950862484,67.04327344894409
[1] => 24.875632837244897,67.04320907592773
[2] => 24.875282432664516,67.04310178756714
[3] => 24.874815225011737,67.04299449920654 )
now I call unset() to remove index "2" and call sort(), it just change the entire array position which is obvious. If i don't call sort then it just shows something like :
Array (
[0] => 24.87611950862484,67.04327344894409
[1] => 24.875632837244897,67.04320907592773
[3] => 24.874815225011737,67.04299449920654 )
is there anyway that i resort the keys but not values?
Thanks