mysql - Sort array values after search php -


hi reasons when i did search form(post method) got array below:

      array(             [0] =>array ( [0] => 2008 [1] => name1 [2] => surname1 )             [1] =>array ( [0] => 2009 [1] => name2 [2] => surname2 )              [2] =>array ( [0] => 2010 [1] => name3 [2] => surname3 )            )   

how can sort array without executing other query , using $_get parameter or getting array this:

       array(             [0] =>array ( [0] => 2010 [1] => name3 [2] => surname3 )             [1] =>array ( [0] => 2009 [1] => name2 [2] => surname2 )              [2] =>array ( [0] => 2008 [1] => name1 [2] => surname1 )            )  

with array_reverse() function.

manual: http://php.net/manual/en/function.array-reverse.php


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -