The IntlChar::isUAlphabetic() function is used to check whether the entered value is an Alphabetic Unicode character or not.
Syntax
IntlChar::isUAlphabetic(val)
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::isUAlphabetic() function returns TRUE if val is Alphabetic Unicode Character.
Example
The following is an example −
<?php var_dump(IntlChar::isUAlphabetic("78")); echo "<br>"; var_dump(IntlChar::isUAlphabetic("Y")); echo "<br>"; var_dump(IntlChar::isUAlphabetic("MissionImpossible")); echo "<br>"; ?>
Output
The following is the output −
NULL bool(true) NULL