strtoupper

  • Making an entire string uppercase is done using Ruby’s String#upcase method.

    PHP

    print strtoupper('Hey World');
    // => HEY WORLD

    Ruby

    puts "Hey World".upcase
    # => HEY WORLD

    see also

strtolower strtr

Looking for Rails or PHP web application development, integration, and training?

Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.