Joins an array of strings together to form one long string, with the
optional separator inserted between each of them.
If str_array has no items, the return value will be an
empty string. If str_array contains a single item, separator will not
appear in the resulting string.
Parameters
separator: string
a string to insert between each of the strings
str_array: string[]
an array of strings to join
Returns string
a newly-allocated string containing all of the strings joined together, with separator between them
Joins an array of strings together to form one long string, with the optional
separatorinserted between each of them.If
str_arrayhas no items, the return value will be an empty string. Ifstr_arraycontains a single item,separatorwill not appear in the resulting string.