Sorting 2D-arrays in PHP

Tutorials Shared by the Internet Community

Advertisements


Synopsis

How to use array_multisort to sort tables by column.

Statistics

  • Total Hits - 17462

  • Total Votes - 108 votes

  • Vote Up - 47 votes

  • Vote Down - 61 votes

  • Domain - www.prodevtips.com

  • Category - PHP/Getting Started

  • Submitted By - Devesh Khanna

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

Description

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! ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements