The strtolower Function
The strtolower function converts
a string to lowercase. Works correctly only
with Latin characters (single-byte characters).
Syntax
strtolower(string $string): string
Example
Let's convert a string to lowercase:
<?php
echo strtolower('ABCDE');
?>
Code execution result:
'abcde'
See Also
-
the
strtoupperfunction,
which converts a string to uppercase -
the
ucfirstfunction,
which converts the first character to uppercase -
the
lcfirstfunction,
which converts the first character to lowercase -
the
ucwordsfunction,
which converts the first letters of words to uppercase