Implode string with ruby array values using join()

join() method implod the character or string between the single dimension array elements.

E.g:
x = [1,2,3,4]
x.join(",") #This returns "1,2,3,3"

No comments:

Post a Comment