join
returns an array as a string
Syntax
join(sep)
Returns
returns (string) of vars in array into string separated by sep
Parameters
- sep (string)
- seperators
Usage
var data = ['this', 'is', 'an', 'example', 'array',];
var test = data.join("-");
echo(test);
// returns this-is-an-example-array