Re: [Rails] different between these two array method.

2012-07-02 Thread Colin Law
On 2 July 2012 09:59, phoe san wrote: > Dear friends, > > What is different between these two array method. > > First Array Method > > arr = ps_array["1"] What is the type of ps_array["1"] Colin > arr += ps_array["2"] > arr += ps_array["3"] > > > Second Array Method > >

[Rails] different between these two array method.

2012-07-02 Thread phoe san
Dear friends, What is different between these two array method. First Array Method arr = ps_array["1"] arr += ps_array["2"] arr += ps_array["3"] Second Array Method arr = [ps_array["1"],ps_array["2"],ps_array["3"]] yours, phoesan -- Posted via http://www.ruby-f