Ruby on Rails Discussions
ruby alternative to php's implode and expload functions
rubyonrails-talk
Luke_Redpath1
(Luke Redpath)
September 28, 2006, 4:19pm
1
items = "item1-item2-item2".split('-')
Luke_Redpath1
(Luke Redpath)
September 28, 2006, 4:20pm
2
And String#join for the reverse.
Related topics
Topic
Replies
Views
Activity
String.join() ??
rubyonrails-talk
2
204
January 29, 2007
Replace comma with space
rubyonrails-talk
4
185
February 14, 2008
Create a hyphen-separated set of letters derived from a string - How to?
rubyonrails-talk
5
468
February 21, 2007
string differences between ruby 1.8 & 1.9.3
rubyonrails-talk
4
212
March 6, 2012
This topic needs a title
rubyonrails-talk
4
168
February 17, 2011