PHP strtolower () function
Examples
All the characters are converted to lowercase:
<?php
echo strtolower("Hello WORLD.");
?>
echo strtolower("Hello WORLD.");
?>
Running instance »
Definition and Usage
strtolower () function to convert a string to lowercase.
Note: This function is binary safe.
Related functions:
- the strtoupper () - convert a string to uppercase
- lcfirst () - the first character of the string converted to lowercase
- ucfirst () - the first character of the string to uppercase
- ucwords () - the first character of each word in a string to uppercase
grammar
strtolower( string )
参数 | 描述 |
---|---|
string | 必需。规定要转换的字符串。 |
technical details
return value: | Returns a string converted to lowercase. |
---|---|
PHP version: | 4+ |
PHP String Reference