PHP | IntlChar::isUUppercase() Function
The IntlChar::isUUppercase() function is an inbuilt function in PHP which is used to check whether the given input character is an Uppercase Unicode character or not.
Syntax:
bool IntlChar::isUUppercase( $codepoint )
Parameters: This function accepts a single parameter $codepoint which is mandotary. The input parameter is a character value, which is encoded as a UTF-8 string.
Return Value: If $codepoint is an UpperCase Unicode character then it returns True, otherwise return False.
Note:The function is different from IntlChar::isupper() function.
Below programs illustrate the IntlChar::isupper() Function in PHP:
Program 1:
<?php // PHP code to illustrate IntlChar::isUUppercase // function // Input data is Capital letter or character var_dump(IntlChar::isUUppercase("M")); // Input data is small letter or character var_dump(IntlChar::isUUppercase("m")); // Input data is Capital letter string var_dump(IntlChar::isUUppercase("GEEKS")); // Input data is small letter string var_dump(IntlChar::isUUppercase("geeks")); // Input data is interger value var_dump(IntlChar::isUUppercase("7")); ?> |
Output:
bool(true) bool(false) NULL NULL bool(false)
Program 2:
<?php // PHP code to IntlChar::isUUppercase // function // Declare an array $arr $arr = array("X", "ReportBug", "^", "c", "\t"); // Loop run for every array element foreach ($arr as $val) { // Check each element of array var_dump(IntlChar::isUUppercase($val)); } ?> |
Output:
bool(true) NULL bool(false) bool(false) bool(false)
Related Articles:
- PHP | IntlChar::isupper() Function
- PHP | IntlChar::isxdigit() Function
- PHP | IntlChar::islower() Function
Reference: http://php.net/manual/en/intlchar.isuuppercase
Recommended Posts:
- How to call a function that return another function in JavaScript ?
- How to get the function name from within that function using JavaScript ?
- How to get the function name inside a function in PHP ?
- PHP | Ds\Set first() Function
- p5.js | nf() Function
- PHP | pos() Function
- D3.js | d3.min() function
- D3.js | d3.lab() Function
- PHP | Ds\Set last() Function
- p5.js | nfp() Function
- PHP | Ds\Set add() Function
- p5.js | nfc() function
- CSS | url() Function
- p5.js | nfs() Function
- D3.js | d3.rgb() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


