From: Tom Link Date: 2009-02-07T15:22:35+09:00 Subject: Re: Array#to_h > Yes, if that's the semantics you want. If you're inclined toward > thinking it should use the array indices as hash keys and the array > values as hash values, then that implementation wouldn't work. With that constructor at hand, it wouldn't be too difficult to get that behaviour though: a = [[1,2],[3,4]] > Hash[(0..(a.size - 1)).zip(a)] => {0=>[1, 2], 1=>[3, 4]} Looks like php.