How to sort multidimensional array with PHP? -


i've array below, want display record having row @ bottom "quotes" array empty.

array ( [0] => array     (         [id] => 0         [regno] => lhr7171         [quotes] => array             (             )      )  [1] => array     (         [id] => 2         [regno] => yn09 byy (9)         [quotes] => array             ( somevalues in array format             )      ) 

uasort(     $i,    function($value1, $value2) {        return count($value2['quotes']) - count($value1['quotes']);     } ); 

and regarding tags below question: has (of course) absolutely nothing sf2 or twig. plain php.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -