The IntlChar::isJavaIDPart() function is used to check whether the entered character is permissible in a java identifier character or not.
Syntax
IntlChar::isJavaIDPart( val )
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::isJavaIDPart()function returns TRUE if val is a Java identifier character.
Example
The following is an example −
<?php var_dump(IntlChar::isJavaIDPart("t")); echo "<br>"; var_dump(IntlChar::isJavaIDPart("A")); echo "<br>"; var_dump(IntlChar::isJavaIDPart(" ")); echo "<br>"; var_dump(IntlChar::isJavaIDPart("88")); echo "<br>"; ?>
Output
The following is the output −
bool(true) bool(true) bool(false) NULL