For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > April 2005 > order arrays









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author order arrays
Roderik Emmerink

2005-04-18, 3:58 am

Hi,

I've got the code:

{foreach item=premiumvermelding_id from=$premiumvermeldingen}
<htmltags>
{insert_object id=$premiumvermelding_id}</htmltags>
{/foreach}

to iterate an array.
I'd like to randomize the order in which the assigned array is iterated.
Is this possible with smarty?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com