User Tools

Site Tools


el:implode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

el:implode [2016/01/01 22:39]
el:implode [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Implode =====
 +==== Format ====
 +**implode** ( //arrayvariable// )\\
 +**implode** ( //arrayvariable// , //delimiter// )
 +
 +==== Description ====
 +Append the elements in an array into a string.  Optionally placing the //delimiter// between the elements.  This is functionally the opposite of the [[Explode|Explode]] function.
 +
 +==== Example ====
 +<code>
 +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)
 +</code>
 +will display
 +<code>
 +How-now-brown-cow
 +Hownowbrowncow
 +1, 2, 3.33, 4.44, 5.55
 +123.334.445.55
 +</code>
 +
 +==== Version ==== 
 +0.9.6.57