Convert PHP code into Ruby!
RSS icon Email icon Home icon
  • print

    Posted on April 20th, 2009 RubyLove No comments

    Output a string.

    Strictly speaking, print() is not a function in PHP, it is a language construct (similar to echo() ).

    PHP

    print 'Hello World!';
    // => Hello World!

    Ruby

    print 'Hello World!'
    # => Hello World!

    Leave a reply