PHP | IntlChar tolower() Function Last Updated : 27 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The IntlChar::tolower() function is an inbuilt function in PHP which is used to convert the character into Unicode lowercase character. The given input character is mapped to its lowercase character equivalent. If the character has no lowercase equivalent then it returns the character itself. Syntax: mixed IntlChar::tolower ( $codepoint ) Parameters: This function accepts single parameter $codepoint which is mandatory. The input parameter is a character, which is encoded as a UTF-8 string. Return Value: This function returns the lowercase mapping character of given character. If the character has no lowercase mapped character then it returns itself. The return type will be integer unless the code point was passed as a UTF-8 string, in which case a string will be returned. Below programs illustrate the IntlChar::tolower() function in PHP: Program 1: php <?php // PHP program to illustrate // IntlChar::tolower function // Input data is uppercase character symbol var_dump(IntlChar::tolower("A")); // Input data is lowercase character symbol var_dump(IntlChar::tolower("a")); // Input data is number symbol var_dump(IntlChar::tolower("1")); // Input data is string symbol var_dump(IntlChar::tolower(ord("XYZ"))); // Input data is uppercase character symbol var_dump(IntlChar::tolower(ord("I"))); ?> Output: string(1) "a" string(1) "a" string(1) "1" int(120) int(105) Program 2: php <?php // PHP code to illustrate IntlChar::tolower() // Declare an array $arr $arr = array(ord("A"), "291", "^", "A", "a", "1"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::tolower($val)); } ?> Output: int(97) NULL string(1) "^" string(1) "a" string(1) "a" string(1) "1" Related Articles: PHP | IntlChar::islower() Function PHP | IntlChar::isupper() Function Reference: http://php.net/manual/en/intlchar.tolower.php Comment More infoAdvertise with us Next Article PHP | IntlChar tolower() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP PHP-function PHP-Intl +1 More Practice Tags : Misc Similar Reads PHP | IntlChar toupper() Function The IntlChar::toupper() function is an inbuilt function in PHP which is used to convert the character into Unicode character uppercase. The given character is change with its uppercase equivalent character. If the character has no uppercase equivalent then it returns the same character. Syntax: mixe 2 min read PHP | IntlChar::totitle() Function The IntlChar::totitle() function is an inbuilt function in PHP which is used to check whether the input code point is a Unicode character titlecase or not.Syntax: mixed IntlChar::totitle( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The $codepoint 2 min read PHP | IntlChar::islower() Function The IntlChar::islower() function is an inbuilt function in PHP which is used to check whether the given input character is a lowercase character or not. Syntax: bool IntlChar::islower( $codepoint ) Parameter: This function accepts a single parameter $codepoint which is mandatory. The input parameter 2 min read PHP IntlChar::ord() Function The IntlChar::ord() function is an inbuilt function in PHP which is used to return the Unicode code point value of the given character. Syntax: int IntlChar::ord( $character ) Parameters: This function accepts a single parameter $character which is mandatory. This parameter is a Unicode character. R 2 min read PHP | IntlChar::chr() Function The IntlChar::chr() function is an inbuilt function in PHP which is used to check whether the given input character is Unicode code point value or not. It returns Unicode character by code point value.Syntax: string IntlChar::chr( $codepoint ) Parameters: This function accepts a single parameter $co 2 min read Like