strtolower

(PHP 4, PHP 5, PHP 7)
Make a string lowercase
string strtolower ( 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.

Parameters:
string

The input string.

Returns:

Returns the lowercased string.

Notes:
This function is binary-safe.
Examples:
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
?>

See also:

strtoupper() -

ucfirst() -

ucwords() -

mb_strtolower() -

doc_php
2016-02-24 16:12:39
Comments
Leave a Comment

Please login to continue.