string.Implode
From GMod Wiki
| Function | |
| Syntax |
string.Implode( String seperator, Table table ) Where is this used? |
| Description: | |
| Takes a table and turns it into a single string. | |
| Returns: | String |
| Part of Library: | String |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.Implode]String.Implode [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | This example turns the table into a single string with spaces as a seperator. |
|---|---|
| Used on | |
| Code | string.Implode(" ", {"This", "Is", "A", "Table"}) |
| Output | "This Is A Table" |
Additional Notes
- It's generally better to use table.concat. It's basically the same, but with more features.