reverse
Returns the reverse of its string
argument.
Example
Applying
reverse('abc')
produces cba
.
Syntax
reverse(string str)
Notes
Takes the string str and reverses the order of the characters such that the last is first, second to last is second and so on.