/ Published in: PHP
A nice way to do sorting of a key on a multi-dimensional array - DavidG
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
); foreach($people as $person) { foreach($person as $key=>$value){ } $arrSortArray[$key][] = $value; } } $orderby = "name"; //change this to whatever key you want from the array
URL: http://goo.gl/tyM6x