Garry's Mod Wiki

Garry's Mod Wiki

  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

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...