- 3.6. Function reference
3.6.11. cycle() - 3.6.10. countWords()
« Previous - 3.6.12. date()
Next »
3.6.11. cycle()
| Reference | mixed cycle(array $array | ... ) |
|---|---|
| Versions | since 2.0.1 |
Returns the next value in the specified cycle. If the internal counter reaches the end of items, it returns to the beginning. The list of values to display in cycle can be provided as a list of arguments or as an array.
<opt:section name="items"> <tr parse:class="cycle('brighter', 'darker')"> <td>{$item.name}</td> <td>{$item.value}</td> </tr> </opt:section>
- 3.6.11. cycle()
3.6. Function reference - « Previous
3.6.10. countWords() - Next »
3.6.12. date()