Functions:reverse

From Dwoo Docs

Jump to: navigation, search

Reverses a string or an array

reverse(string $value, [ bool $preserve_keys = false ])
  • value : the string or array to reverse
  • preserve_keys : if value is an array and this is true, then the array keys are left intact




Example:

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

Output:

c b a 
cba
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.