Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Arrange Array's??

Status
Not open for further replies.

Naits

Programmer
Oct 10, 2001
90
NO
I have an Array that look's like this:

$date[0] = "20011020" //YYYY MM DD (year month day)
$date[1] = "20000910" //---------||----------------
$date[2] = "20010815" //---------||----------------
and it continues...


How can I sort this by date starting with the newest?
 
Code:
rsort($date);
reset($array);

That should do it. Girish Gupta
girish@musicgoeson.com
 
Sorry, it should be:

Code:
rsort($date);
reset($date);
Girish Gupta
girish@musicgoeson.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top