array.join Function |
The array.join inserts an expression between each element of an array and returns the result as a string.
This function is often used to convert an array to CSV format, by joining the array and inserting commas (',') between elements.
array.join(ident, expr);
ident | An array identifier |
expr | An expression to insert between elements in the array |
$name = array.new($part1,$part2,$part3); PRINT array.join($name, " - ");
array.add - add an element to the tail of an array
array.first - get the first element of an array
array.flatten - expand elements of an array that are, themselves, arrays
array.last - get the last element of an array
array.new - create a new array
array.pop - remove and return the element at the head of the array
array.range - return a sub-array from a specified array
array.set_at - modify the data at a specified index of an array
array.get_at - retrieve the data at a specified index of an array
length - get the number of elements in an array