JOIN

Action

Returns a string created by joining a number of substrings contained in an array.

 

Syntax

JOIN (array, "delimiter", count)

 

Parameter

Array

Required. One-dimensional array containing substrings to be joined.

Delimiter

Optional. String character used to separate the substrings in the returned string. If omitted, the space character (" ") is used. If delimiter is a zero-length string (""), all items in the list are concatenated with no delimiters.

Count

Optional. Number of array elements to join.

Returns

A string.

 

Example

$Myarray = "aaa", "bbb", "ccc"

 

$String = Join( $Myarray, "=" )  ; $string now contains "aaa=bbb=ccc"

 

$String = Join( $Myarray, "=", 2 )   ; $string now contains "aaa=bbb"