NYCPHP Meetup

NYPHP.org

[nycphp-talk] sorting multi-dimesional arrays ...

Christopher R. Merlo cmerlo at matcmp.ncc.edu
Thu Jul 24 02:58:42 EDT 2003


On 2003-07-21 17:48 -0700, Jon Baer <jonbaer at jonbaer.net> wrote:

| basically i have around 3500+ access points logged and wanted to do some
| stats, but could not think of a better way to sort via a 2d array on the 2nd
| element, im just looking to shorten up the code (by just using an array
| method of some kind - array_multisort?)...

why not just do:

$sql = "select * from table order by column2";

-c

-- 
  cmerlo at matcmp.ncc.edu      http://turing.matcmp.ncc.edu/~cmerlo

Windows:  You'll wish we were kidding.



More information about the talk mailing list