PHP | IntlChar toupper() Function Last Updated : 27 Aug, 2019 Comments Improve Suggest changes Like Article Like Report 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: mixed IntlChar::toupper ( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The value of integer $codepoint is (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}"). Return Value: This function returns the upper case mapped character of given character. If the given character has no upper case mapped character then it returns the character 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::toupper() function in PHP: Program 1: php <?php // PHP program to illustrate // IntlChar::toupper function // Input data is uppercase character symbol var_dump(IntlChar::toupper("A")); // Input data is lowercase character symbol var_dump(IntlChar::toupper("a")); // Input data is number symbol var_dump(IntlChar::toupper("1")); // Input data is string symbol var_dump(IntlChar::toupper(ord("xyz"))); // Input data is uppercase character symbol var_dump(IntlChar::toupper(ord("I"))); ?> Output: string(1) "A" string(1) "A" string(1) "1" int(88) int(73) Program 2: php <?php // PHP code to illustrate IntlChar::toupper() // 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::toupper($val)); } ?> Output: int(65) 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.toupper.php Comment More infoAdvertise with us Next Article PHP | IntlChar toupper() 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 tolower() Function 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 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::isupper() Function The IntlChar::isupper() function is an inbuilt function in PHP which is used to check whether the given input character is an uppercase character or not. Syntax: bool IntlChar::isupper( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input paramet 2 min read PHP | IntlChar::isalpha() Function The IntlChar::isalpha() function is an inbuilt function in PHP which is used to check the given input is an alphanumeric character or not. Syntax: bool IntlChar::isalpha( $codepoint ) Parameters: The IntlChar::isalpha() function accept single parameter $codepoint which is mandatory. The input parame 1 min read PHP | IntlChar isgraph() Function The IntlChar::isgraph() function is an inbuilt function in PHP which is used to check the code point is a graphic character or not. It returns True for all characters except those with general categories Cc(control codes), Cf(format controls), Cs(surrogates), Cn(unassigned), and Z(separators). Synta 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 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 strtoupper() Function The PHP strtoupper() function converts all alphabetic characters in a given string to uppercase. It takes a string as an argument and returns a new string with all letters capitalized, leaving non-alphabetic characters unchanged.Syntax string strtoupper ( $string )Parameter: The only parameter to th 2 min read toupper() function in C The toupper() function is used to convert lowercase alphabet to uppercase. i.e. If the character passed is a lowercase alphabet then the toupper() function converts a lowercase alphabet to an uppercase alphabet. It is defined in the ctype.h header file.Syntax: int toupper(int ch);Parameter: It accep 2 min read PHP mb_strtoupper() Function The mb_strtoupper() function is an inbuilt function in PHP that helps to transform the multibyte string to uppercase. Syntax: mb_strtoupper(string $string, ?string $encoding = null): string Parameters: This function has two parameters: string: This parameter specifies the string that is to be made t 1 min read Like