Name

strtolower()

Synopsis

    string strtolower ( string str )

The strtolower() function takes one string parameter and returns that string entirely in lowercase characters.

    $string = "I like to program in PHP";
    $a = strtolower($string);

In that example, $a will be set to "i like to program in php".

Get PHP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.