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

    Posted on April 17th, 2009 RubyLove No comments

    Output one or more strings.

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

    PHP

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

    Ruby

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

    Leave a reply