News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ProDevTips:
Sorting 2D-arrays in PHP - anectodes and reflections
January 07, 2008 @ 08:41:00

On the ProDevTips website today, there's a new article looking at the sorting of arrays, specifically of the two- and three-dimensional sort.

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!

Not quite finding what he needed in the array_multisort function built into PHP, the author opts to create his own custom sorting function that make sorting 2D arrays simpler.

0 comments voice your opinion now!
sort 2d 3d array dimensional arraymultisort usort tutorial sort 2d 3d array dimensional arraymultisort usort tutorial


blog comments powered by Disqus

Similar Posts

BinaryTides.com: PHP Socket programming tutorial

PHPit.net: Image manipulation with PHP & the GD library (Part 1)

Rob Allen: Integrating BjyAuthorize with Zend\Navigation

SitePoint PHP Blog: Building a Live-score Widget Using PHP Web Sockets

EasyPHPWebsites.com: Creating a Website Visitor Map (Ajax, jQuery, Google Maps API)


Community Events











Don't see your event here?
Let us know!


hack hhvm series security symfony2 framework language threedevsandamaybe podcast package facebook release opinion code unittest application install component introduction composer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework