The IntlChar::isUUppercase() function checks whether the given input character is an Uppercase Unicode character or not.
Syntax
IntlChar::isUUppercase(val)
Parameters
val − It is a character value, which is encoded as a UTF-8 string.
Return
The IntlChar::isUUppercase() function returns TRUE if the val is an Uppercase Unicode character or not.
Example
The following is an example −
<?php
var_dump(IntlChar::isUUppercase("2"));
echo "<br>";
var_dump(IntlChar::isUUppercase("Jack"));
echo "<br>";
var_dump(IntlChar::isUUppercase("K"));
?>Output
The following is the output −
bool(false) NULL bool(true)
Example
Let us see another example −
<?php
var_dump(IntlChar::isUUppercase("*"));
echo "<br>";
var_dump(IntlChar::isUUppercase("n"));
echo "<br>";
var_dump(IntlChar::isUUppercase("D"));
?>Output
The following is the output −
bool(false) bool(false) bool(true)