reverse

1.0 1.1 1.2 1.3

Reverses a string or an array

<?php
reverse(string $value, [ bool $preserve_keys = false ])

Examples

index.tpl
{loop reverse(array('a', 'b', 'c'))}{$} {/loop}
{"abc"|reverse}

The above example will output:

c b a 
cba