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 mandotary. 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 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("Geeksforgeeks")); // 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 code to illustrate 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:
- PHP | IntlChar::isUUppercase() Function
- PHP | IntlChar::charDigitValue() Function
- PHP | IntlChar::isspace() Function
- PHP | IntlChar::isWhitespace() Function
Reference: http://php.net/manual/en/intlchar.isualphabetic.php
Recommended Posts:
- How to call a function that return another function in JavaScript ?
- How to get the function name from within that function using JavaScript ?
- p5.js | hex() function
- PHP | pi( ) Function
- D3.js | d3.max() function
- p5.js | str() function
- PHP | Ds\Map map() Function
- PHP | Ds\Map last() Function
- p5.js | box() Function
- p5.js | arc() Function
- PHP | pow( ) Function
- PHP | Ds\Set last() Function
- PHP | Ds\Set first() Function
- p5.js | sin() function
- PHP | Ds\Set add() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



