string.reverse
From GMod Wiki
| Function | |
| Syntax |
string.reverse( String ) Where is this used? |
| Description: | |
| Reverses a string. | |
| Returns: | String |
| Part of Library: | String |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.reverse]String.reverse [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Reverses the string "Testing!" |
|---|---|
| Used on | |
| Code | local txt = "Testing!" Msg(txt) --Now reversed txt = string.reverse(txt) Msg(txt) --Shows "!gnitseT" |
| Output | "!gnitseT" in console |