string.reverse()

Type Function
Library string.*
Return value String
Revision 2017.3178
Keywords string, reverse, flip
See also String

Overview

Reverses a string.

Syntax

string.reverse( s )

s:reverse()
s (required)

String. The string to reverse.

Example

print( string.reverse( "Corona" ) )  --> anoroC