Forum: Ruby on Rails Ruby equivalent of PHP Explode / Implode

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B614e42d18c609ac4585d0aa0b13d856?d=identicon&s=25 rails (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Anyone know what the Ruby equivalent of PHP's explode and implode are
for arrays?

- Jim
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 kyle (Guest)
on 2005-11-12 12:49
(Received via mailing list)
.split .join
78b15ebcefd5841518b097a2615ea9ca?d=identicon&s=25 felix.mccoey (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Jim Jeffers wrote:
> Anyone know what the Ruby equivalent of PHP's explode and implode are
> for arrays?
>
> - Jim

there is Array#join and String#split

-felix
This topic is locked and can not be replied to.