By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

PHP Strtolower

Reference on how to use the strtolower function of PHP. The strtolower function is used to convert uppercase to lowercase.

Edited: 2012-12-17 21:13

The strtolower function is used to convert upper case letters to lower case versions.

See also: Convert String to Lowercase With PHP


The strtolower function only has a single parameter, which is the string to be converted.

Strtolower Example

The below shows hot to convert a string containing uppercase letters, to a string only containing lowercase letters.

$str = "Today, we convert This STRING.";
$str = strtolower($str);
echo $str; // Results in: "today, we convert this string."