Garry's Mod Wiki

Garry's Mod Wiki

  string string.reverse( string str )

Description

Reverses a string.

Arguments

1 string str
The string to be reversed.

Returns

1 string
reversed string

Example

Reverse "abcdef".

print( string.reverse( "abcdef" ) )
Output: fedcba

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...