IntlChar::isUUppercase() function in PHP

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 −

";
   var_dump(IntlChar::isUUppercase("Jack"));
   echo "
";    var_dump(IntlChar::isUUppercase("K")); ?>

Output

The following is the output −

bool(false)
NULL
bool(true)

Example

Let us see another example −

";
   var_dump(IntlChar::isUUppercase("n"));
   echo "
";    var_dump(IntlChar::isUUppercase("D")); ?>

Output

The following is the output −

bool(false)
bool(false)
bool(true)
Updated on: 2019-12-30T07:49:14+05:30

141 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements