IntlChar::isupper() function in PHP


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)

Updated on: 30-Dec-2019

111 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements