/ Published in: PHP
                    
                                        
This sorts a multi-dimensional array by one of the values in the array. Sorts in Desc order (most recent date first).
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
)
function sortByOrder($a, $b) {
return $b['date'] - $a['date'];
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                