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
Post a Comment