ArrayToList()

Transform the array to a list of elements delimiter by the given string

ArrayToList( array=array, delimiter=string );

Returns: String

Argument Description Default
array
array, required

Name of array

delimiter
string, optional

Character or multicharacter string to separate list elements.

The default value is comma.

Alias: delimiters

,

Examples

Convert an array to a list (optional delimiter)

newArray = ['a','b','c','b','d','b','e','f'];
	dump(arrayToList(newArray));
<span class="c">// member function, with custom separator</span>
<span class="nf">dump</span><span class="p">(</span><span class="nf">newArray.toList</span><span class="p">(</span><span class="s1">&#39;--&#39;</span><span class="p">));</span>

See also