Reply LinkBack Thread Tools Search this Thread
Old 30-03-2006, 17:17   #1 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
<?php - loop thru a foreach backward

Is there anyway to loop thru a true foreach loop backwards. Say I have an array with 100 indexes, I want too loop thru starting at 100, 99, 98 ect. I know this can be done in a basic FOR statement, but thats not what I'm after. Thanks
  Reply With Quote
Old 30-03-2006, 17:39   #2 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,841
  Reply With Quote
Old 30-03-2006, 22:08   #3 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
Quote:
Originally Posted by gray
Cheers Gray.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8