PHP: strtolower() function
PHP: Make a string lowercase
The strtolower() function is used to convert all alphabetic characters of a string to lowercase.
Version:
(PHP 4 and above)
Syntax:
strtolower(string1)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
string1 | The input string. | Required | string |
Return value:
Returns the lowercased string.
Value Type: string.
Pictorial Presentation
Example:
<?php
$string1="WELCOME TO W3RESOURCE.COM";
echo strtolower($string1);
?>
Output:
welcome to w3resource.com
View the example in the browser
See also
Previous: strstr
Next: strtoupper
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/strtolower.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics