ArrayToList

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

Returns: string

Usage

ArrayToList( array [, delimiter ] )

Arguments

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.

,

Examples

Convert an array to a list (optional delimiter)

newArray = ['a','b','c','b','d','b','e','f'];
	dump(arrayToList(newArray));

    // member function, with custom seperator
	dump(newArray.toList('--'));

See also