Reply to sorting arrays

Your name:

Reply:


Posted by Gabino Travassos on 03/09/05 05:56

Hello List

I've looked at array_multisort( ), but it doesn't seem like the right
function. Here's an example of my array, it's a listing of CD reviews:
$cds=array(array("Lowest of the Low", 20050105,9,"Toronto"), array("Heavy
Blinkers",20041020,6,"Chicago"), array("Apple,Fiona",20050308,5,"Seattle"));

If I wanted to sort them alphabetically, no problem, just sort($cds).
If I want to sort them by date (the second item in the array) or by ranking
(the third), how do I do that?

Is there something simple?

Many thanks.

Gabino

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация