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
strtoupper
function,
which converts a string to uppercase -
the
ucfirst
function,
which converts the first character to uppercase -
the
lcfirst
function,
which converts the first character to lowercase -
the
ucwords
function,
which converts the first letters of words to uppercase