You are here: foreach in reverse « Smarty Templates Posts « IT news, forums, messages
foreach in reverse

Posted by Matt Warden on 08/11/05 23:21

smarties,

I was hoping that there was a way to do a foreach in reverse (i.e.,
starting with the last element and ending with the first). After
seeing that there doesn't seem to be, I tried to work out the
equivalent of a 'foreach in reverse' with sections and a negative
step. Does someone have an example of doing this?

--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.

 

Navigation:

[Reply to this 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

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