Reverse foreach order

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 10, 2009   (RSS)

Re: [bruno] Reverse foreach order

By Dave - February 10, 2009

Hi Niki,

You can reverse the order of an array (or list of images) like this:

<?php foreach (array_reverse($web_portfolioRecords) as $record): ?>

Give that a try and if you're still having troubles feel free to email me CMS and FTP login details to dave@interactivetools.com and I can take a look. (Email, don't post login details the forum).

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com