Garry's Mod Wiki

string.Implode

string string.Implode( string separator, table pieces )

Description

We advise against using this. It may be changed or removed in a future update. You really should just use table.concat.

Joins the values of a table together to form a string.

This is the reverse of string.Explode and is functionally identical to table.concat, but with less features.

Arguments

1 string separator
The separator to insert between each piece.
2 table pieces
The table of pieces to concatenate. The keys for these must be numeric and sequential.

Returns

1 string
Imploded pieces

Example

Joins all values of a table with a space

local tab = { "one", "two", "three" } print( string.Implode( " ", tab ) )
Output:
one two three

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 4
Generate Html 11
SaveChanges (1) 12
Render Body 0
Render Sidebar 10