IntlChar::isupper() function in PHP

PHPServer Side ProgrammingProgramming

The IntlChar::isupper()function check whether the given input character is an uppercase character or not.

Syntax

bool IntlChar::isupper(val)

Parameters

  • val − A character encoded as a UTF-8 string.

Return

The IntlChar::isupper()function returns TRUE if the entered value is an uppercase character.

Example

The following is an example −

<?php
   var_dump(IntlChar::isupper("a"));
   echo "<br>";
   var_dump(IntlChar::isupper("A"));
?>

Output

The following is the output −

bool(false)
bool(true)
raja
Updated on 30-Dec-2019 08:47:11

Advertisements