All help topics · Link to this topic
Showing help on 'reverse()'
Syntax: reverse(LIST|STR <value>) => LIST | STRReturn a reversed list or string. If <value> is neither a list nor a string, E_INVARG is raised.
Examples:
;reverse({1,2,3,4}) => {4,3,2,1}
;reverse("asdf") => "fdsa"