function<br>

Name: cycle<br> Date: May 3, 2002<br> Purpose: cycle through given values<br> Input:

  • name = name of cycle (optional)
  • values = comma separated list of values to cycle, or an array of values to cycle (this can be left out for subsequent calls)
  • reset = boolean - resets given var to true
  • print = boolean - print var or not. default is true
  • advance = boolean - whether or not to advance the cycle
  • delimiter = the value delimiter, default is “,”
  • assign = boolean, assigns to template var instead of printed.

Examples:<br> <pre> {cycle values=”#eeeeee,#d0d0d0d”} {cycle name=row values=”one,two,three” reset=true} {cycle name=row} </pre> @link http://smarty.php.net- /manual- /en- /language.function.cycle.php {cycle} (Smarty online manual) @author Monte Ohrt mo.nosp@m.nte@ispi.nosp@m..net @author credit to Mark Priatel mpri.nosp@m.atel@roger.nosp@m.s.com @author credit to Gerard ger.nosp@m.ard@interf.nosp@m.old.com @author credit to Jason Sweat jsweat_p.nosp@m.hp@yaho.nosp@m.o.com @version 1.3 @param array @param Smarty @return string|null