string.reverse

From Garry's Mod
Jump to: navigation, search
 string.reverse( )

Contents

Description

Reverses a string.

Arguments

string str

The string to be reversed.

Returns

string

reversed string

Examples

Example

Reverse "abcdef".

print( string.reverse( "abcdef" ) )

Output:

fedcba
Personal tools
Navigation