This shows you the differences between two versions of the page.
en:implode [2016/11/07 12:20] admin |
en:implode [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Implode (Function) ===== | ||
- | |||
- | ==== Format ==== | ||
- | **implode** ( [[arrays|variable[]]] )\\ | ||
- | **implode** ( [[arrays|variable[]]] , [[stringexpressions|delimiter_expression]] )\\ | ||
- | **implode** ( [[arrays|variable[]]] , [[stringexpressions|row_delimiter_expression]], | ||
- | **implode** ( [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] )\\ | ||
- | **implode** ( [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] , [[stringexpressions|delimiter_expression]] )\\ | ||
- | **implode** ( [[Lists|{ x1, y1, x2, y2, x3, y3 ... }]] , [[stringexpressions|row_delimiter_expression]], | ||
- | **implode** ( [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] )\\ | ||
- | **implode** ( [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] , [[stringexpressions|delimiter_expression]] )\\ | ||
- | **implode** ( [[Lists|{ {x1, y1}, {x2, y2}, {x3, y3} ... }]] , [[stringexpressions|row_delimiter_expression]], | ||
- | |||
- | returns [[stringexpressions|string_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | Append the elements in an array into a string. | ||
- | |||
- | ==== Example ==== | ||
- | < | ||
- | dim a$(1) | ||
- | dim b(1) | ||
- | a$ = Explode(" | ||
- | print implode(a$[]," | ||
- | print implode(a$[]) | ||
- | b = Explode(" | ||
- | 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 ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.6.57|New to Version| | ||
- | |1.99.99.55|dimensional delimiters and list support was added| | ||
- | |1.99.99.72|added required [] to passing variable array| | ||