Table of Contents

Implode (Function)

Format

implode ( variable[] )
implode ( variable[] , delimiter_expression )
implode ( variable[] , row_delimiter_expression, column_delimiter_expression )
implode ( { x1, y1, x2, y2, x3, y3 ... } )
implode ( { x1, y1, x2, y2, x3, y3 ... } , delimiter_expression )
implode ( { x1, y1, x2, y2, x3, y3 ... } , row_delimiter_expression, column_delimiter_expression )
implode ( { {x1, y1}, {x2, y2}, {x3, y3} ... } )
implode ( { {x1, y1}, {x2, y2}, {x3, y3} ... } , delimiter_expression )
implode ( { {x1, y1}, {x2, y2}, {x3, y3} ... } , row_delimiter_expression, column_delimiter_expression )

returns string_expression

Description

Append the elements in an array into a string. Optionally placing the delimiter_expression between the elements. This is functionally the opposite of the Explode function.

Example

dim a$(1)
dim b(1)
a$ = Explode("How now brown cow"," ")
print implode(a$[],"-")
print implode(a$[])
b = Explode("1,2,3.33,4.44,5.55",",")
print implode(b[],", ")
print implode(b[])

will display

How-now-brown-cow
Hownowbrowncow
1, 2, 3.33, 4.44, 5.55
123.334.445.55

See Also

2016/01/01 22:42

History

0.9.6.57New to Version
1.99.99.55dimensional delimiters and list support was added
1.99.99.72added required [] to passing variable array