i need to sort an array in php based on value, array use some numbers for keys and values, for example like this:
$a = array(70 => 1 ,82
You can create your own sorting function to meet your customized sorting criteria and then use usort() to iterate all over the array using the function you created to sort the array.