w3resource

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

string_strtolower

Example:

<?php
$string1="WELCOME TO W3RESOURCE.COM";
echo strtolower($string1); 
?>

Output:

welcome to w3resource.com

View the example in the browser

See also

PHP Function Reference

Previous: strstr
Next: strtoupper



Become a Patron!

Follow us on Facebook and Twitter for latest update.

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