string.reverse()

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