PHP strtolower() Function
Example
Convert all characters to lowercase:
Run Example »
Definition and Usage
The strtolower() function converts a string to lowercase.
**Note:** This function is binary-safe.
Related functions:
- strtoupper() - Convert a string to uppercase
- lcfirst() - Convert the first character of a string to lowercase
- ucfirst() - Convert the first character of a string to uppercase
- ucwords()- Convert the first character of each word in a string to uppercase
Syntax
strtolower(
string
)
| Parameters | Description |
|---|---|
| string | Required. Specifies the string to convert. |
Technical Details
| Return Value: | Returns the string converted to lowercase. |
|---|---|
| PHP Version: | 4+ |
PHP String Reference Manual