Displaying 1 result from an estimated 1 matches for "field_as_array".
2006 Sep 28
3
ruby alternative to php's implode and expload functions
...ve a
database field that contains an array of items, when i output this field
i notice the items are seperated by ''-'' e.g item1-item2-item3.
how would i go about putting them back into an array in ruby. for
example in PHP i would just do this:
$field; // = item1-item2-item3
$field_as_array = explode(''-'',$field);
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...