Julian Leviston wrote:

> Is there are similar thing to the PHP version of implode in ruby?
>
> I want this to happen...
>
> z = %w[yeah, cool, mad, awesome, funky]

z = %w[yeah cool mad awesome funky]

Additionally to what the others have already said, you can use the 
*-operator here:

x = z * ''

x = z * ', '

-- 
Florian Frank