Assiging values in Ruby using PHP equivalent for loop (I'm using Ruby on Rails) -
i have unsolved issue on stackoverflow suspect due incorrect syntax of loop on ruby language.
i ask equivalent of following in ruby:
for ($x = 0; $x <= 10; $x++) { $array[] = $x; }
thanks in advanced helping! please me solve initial question in link above. many thanks!
Comments
Post a Comment