strtolower

  • Making an entire string lowercase is done using Ruby’s String#downcase method.

    PHP

    print strtolower('Hey World');
    // => hey world

    Ruby

    puts "Hey World".downcase
    # => hey world

    see also

strtok strtoupper

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.