Hi,

+ operator won't works in array I think but used as concatenation in 
staring.

Second scenario of your case works fine.

Thanks,
senthil
 

On Monday, 2 July 2012 14:29:57 UTC+5:30, Ruby-Forum.com User wrote:
>
> 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-forum.com/. 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/iSs267Q5HWYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Reply via email to