Home > PHP > Sort Multi-Dimensional Array

function cmp($a, $b) {
if ($a['order'] == $b['order']) return 0;
return ($a['order'] < $b['order']) ? -1 : 1;
}
usort($array, 'cmp');



Flag Counter