PHP to Ruby
Convert PHP code into Ruby!
-
strtolower
Posted on March 8th, 2009 No commentsReturns the argument provided with all alphabetic characters converted to lowercase.
PHP
echo strtolower('Ruby is pure OO'); // => ruby is pure oo
Ruby
puts 'Ruby is pure OO'.downcase; # => ruby is pure oo
Leave a reply


