Returns string with all alphabetic characters converted to lowercase. Test strtolower online.
string strtolower ( string $string )
PHP Documentation by the PHP Documentation Group
(PHP 4, PHP 5, PHP 7, PHP 8)
strtolower — Make a string lowercase
$string
) : string
Returns string
with all alphabetic characters
converted to lowercase.
Note that 'alphabetic' is determined by the current locale. This means that e.g. in the default "C" locale, characters such as umlaut-A (Ä) will not be converted.
string
The input string.
Returns the lowercased string.
Example #1 strtolower() example
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str; // Prints mary had a little lamb and she loved it so
?>
Note: This function is binary-safe.
Copyright © 1997 - 2016 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Creative Commons Attribution 3.0 License or later. A copy of the Creative Commons Attribution 3.0 license is distributed with this manual. The latest version is presently available at » http://creativecommons.org/licenses/by/3.0/.