API strrev

From Warcraft Wiki
Jump to navigation Jump to search

Reverses all of the characters in a string.

string.reverse(string)
strrev(string)

Example

> = string.reverse("Hello, Lua user!")
!resu auL ,olleH