strrev Function
strrev
reverses the characters in a string.
Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).
Examples
Related Functions
reverse
reverses a sequence.
You are viewing documentation for version v1.6.x. View latest version.
strrev
reverses the characters in a string.
Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).
strrev(string)
strrev(string)
> strrev("hello") olleh > strrev("a ☃") ☃ a
> strrev("hello")
olleh
> strrev("a ☃")
☃ a
reverse
reverses a sequence.