jeudi 1 septembre 2016

ruby.split(/\n/) separate into multiple array

I need to Separate multiple Array entries with a newline. the names in the aray value. Again I want to split the array like seperate names.
Eg. names="alice\nbob"
and I want names=alice&names=bob. How can I get that??

Aucun commentaire:

Enregistrer un commentaire