/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function subval_sort($a,$subkey) { foreach($a as $k=>$v) { } foreach($b as $key=>$val) { $c[] = $a[$key]; } return $c; }
URL: http://firsttube.com/read/sorting-a-multi-dimensional-array-with-php/