ArrayToList()
Transform the array to a list of elements delimiter by the given string
ArrayToList( array=array, delimiter=string );
Returns: String
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">'--'</span><span class="p">));</span>
See also
- Arrays
- Lists
- Strings
- array.toList()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)