The What
It’s available in PHP 4, 5, and 7.
Syntax
string mb_strtolower( string $string_to_convert, string $character_encoding = mb_internal_encoding() );
Description
This construct converts a string’s alphabetic characters to lowercase. It uses the current locale to determine the converter. Unlike the strtolower(), you can specify the character encoding, such as “UTF-8.”
Why? This function ensures characters such as umlaut-A (Ä) are properly converted.
Parameters
string_to_convert
- This is the string to be converted into lowercase characters.
character_encoding
- (optional) You can specify the character encoding to ensure that expanded character sets, such as umlaut-A (Ä) are properly converted.
Return Values
This function returns the converted string.
If you listen carefully, you can hear the 1s and 0s flowing in your computer.
More coming soon…keep checking back.