PHP.nl

strtolower

strtolower

Make a string lowercase

string **strtolower** string $string

Returns with all ASCII alphabetic characters converted to lowercase. string

Bytes in the range (0x41) to (0x5a) will be converted to the corresponding lowercase letter by adding 32 to each byte value. "A"``"Z"

This can be used to convert ASCII characters within strings encoded with UTF-8, since multibyte UTF-8 characters will be ignored. To convert multibyte non-ASCII characters, use . mb_strtolower

stringThe input string.

Returns the lowercased string.

Voorbeeld: example

<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str; // Prints mary had a little lamb and she loved it so
?>

strtoupper``ucfirst``ucwords``mb_strtolower