foreach($sql_result['record2'] as $key ){
echo $key['ENO'];
}
when iam doing foreach loop for the above statement .It outputs (10,9,2,8,4).I need it to sort to (2,4,8,9,10)
one more thing is “$key” is of Type Array.when i do like this array_multisort($key[‘ENO’]). how do i acheive this
or if you want to pre-sort the values you could use
usort()