Friday, October 10, 2025
HomeLanguagesPHP | IntlChar::isUAlphabetic() Function

PHP | IntlChar::isUAlphabetic() Function

The IntlChar::isUAlphabetic() function is an inbuilt function in PHP which is used to check whether the given input character is an Alphabetic Unicode character or not. 

Syntax:  

bool IntlChar::isUAlphabetic( $codepoint )

Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parameter is an integer or character, which is encoded as a UTF-8 string.

Return Value: If $codepoint is an Alphabetic Unicode Character then returns True, otherwise return False.

Below programs illustrate the IntlChar::isUAlphabetic() function in PHP:

Program 1:  

PHP




<?php
// PHP program to illustrate
// IntlChar::isUAlphabetic() function
  
// Input data is character type
var_dump(IntlChar::isUAlphabetic("G"));
  
// Input data is string type
var_dump(IntlChar::isUAlphabetic("B\n"));
   
// Input data is string type
var_dump(IntlChar::isUAlphabetic("Geeksforneveropen"));
   
// Input data is number(multiple digit)
var_dump(IntlChar::isUAlphabetic("2018"));
   
// Input data is single digit
var_dump(IntlChar::isUAlphabetic("9"));
 
// Input data is floating point number
var_dump(IntlChar::isUAlphabetic("10.99"));
  
?>


Output: 

bool(true)
NULL
NULL
NULL
bool(false)
NULL

Program 2: 

PHP




<?php
// PHP code to illustrate IntlChar::isUAlphabetic()
   
// Declare an array $arr
$arr = array("Z", "291", "^", "  ", "*", "Sudo Placement");
  
// Loop run for every array element
foreach ($arr as $val){
      
    // Check each element as code point data
    var_dump(IntlChar::isUAlphabetic($val));
}
?>


Output: 

bool(true)
NULL
bool(false)
NULL
bool(false)
NULL

Related Articles: 

Reference: http://php.net/manual/en/intlchar.isualphabetic.php
 

Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32350 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6718 POSTS0 COMMENTS
Nicole Veronica
11880 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11941 POSTS0 COMMENTS
Shaida Kate Naidoo
6838 POSTS0 COMMENTS
Ted Musemwa
7101 POSTS0 COMMENTS
Thapelo Manthata
6794 POSTS0 COMMENTS
Umr Jansen
6794 POSTS0 COMMENTS