METHOD:  Array::join


Array.join(separator)
 
The join method is used to join all the elements of an array into a single string separated by a specified string separator (if none is specified, the default is a comma).
 
The following example produces a string of all the elements of the array 'cars' separated by a plus sign (+):
 
Code:
cars.join(" + ")
 
Output:
Mercedes + Ford + Chrysler


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information