Discussion: sorting in PHP.
Afficher un message
Vieux 26/03/2008, 23h04   #2
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sorting in PHP.

..oO(amit)

>I'm getting data string as following. One of the columns is unixtime
>(10th element in each row) . How can I sort my array base on that?
>
>"310","true","6824567491","682087491","714469","x xxxx","xxxxx","xxxxx","xxxx","xxxxx","1206047432"
>"310","false","681224591","682087491","667256827" ,"yyyyy","yyyy","yyyy","yyyy","yyyy","120604783 7"


Write your own sorting function to use with usort().

Micha
  Réponse avec citation
 
Page generated in 0,04452 seconds with 9 queries