ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-france
php-france
Re: [php-france] Trier un tableau selon plusieurs critères.
by Patrick other posts by this author
Jun 22 2007 7:23AM messages near this date
Re: [php-france] Trier un tableau selon plusieurs critères. | RE: [php-france] Trier un tableau selon plusieurs critères.
Le 22 juin 2007 a 11:09, David BOURIAUD �crivait:
>  En l'ocurence, chaque ligne de $tab ressemble � 
>  col1 | col2 | col3 | col4 | col5 | plop
>  
>  Je veux trier ce foutu tableau $tab, selon les colonnes col1, col2 et col5.

Je dirais la fonction usort(). Elle te permet d'utiliser une fonction de
tri que tu d�finis toi-m�me. Ca te permet toute sorte de tri possible.

Courage,

-- 
Patrick
Get Firefox ! 
http://www.spreadfirefox.com/?q=affiliates&id=17457&t=1
Thread:
David BOURIAUD
Jean-Marie Fourcade
David BOURIAUD
Patrick
Benjamin APARICIO

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved