Built-in Functions → reverse
reverse() is a string function that returns the reverse order of its string
argument, such that the last is first, second to last is second and so on.
Signature
reverse(string value)
The following table illustrates the reverse() parameter:
Parameter | Description |
---|---|
string value | string to reverse |
Returns
string
Example
Reverse abc
reverse('abc')
This example returns cba
.