ruby alternative to php's implode and expload functions

items = "item1-item2-item2".split('-')

And String#join for the reverse.