Sorting 2D-arrays in PHP

Tutorials Shared by the Internet Community


Sorting 2D-arrays in PHP

How to use array_multisort to sort tables by column.


  • Total Hits - 33530

  • Total Votes - 108 votes

  • Vote Up - 47 votes

  • Vote Down - 61 votes

  • Domain -

  • Category - PHP/Getting Started

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-16 09:39:43


One of the many problems with PHP that detractors are eager to point out is the fact that the language has thousands of global functions. Without the awesome CHM version of the PHP manual - finding your way in this jungle would be a mess. Simply finding a function like array_multisort is not trivial. And even if you find it, understanding it completely is not trivial either!    More detail...

Broken  |   Save  |   Liked  |   Down

E-Books Store