string.reverse()

Type Function
Library string.*
Return value String
Revision Release 2022.3683
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