Onetastic Macro Documentation >
>
>
Array_Join Array_Join
Concatenates the elements in the given array using the given glue string and returns the combined string.
Syntax
String Array_Join(
Array array,
String glue)
Parameters
- Array array
- Array to join together into a string.
- String glue
- Glue string to add between the array elements.
Examples
$array = Array("apple", "banana", "strawberry")
$string = Array_Join($array, ", ")
$array = Array("b", "a", "n", "a", "n", "a")
$string = Array_Join($array, "")
$array = Array("size", "type", "color")
$string = Array_Join($array, "/")
$array = String_Split("size/type/color", "/")
|