The IntlChar::isJavaIDStart() function is used to check whether the entered character is permissible since the first character is a java identifier or not.
Syntax
IntlChar::isJavaIDStart(val)
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::isJavaIDStart() function returns TRUE if the val begins withJava identifier character.
Example
The following is an example −
<?php var_dump(IntlChar::isJavaIDStart("A")); echo "<br>"; var_dump(IntlChar::isJavaIDStart("a")); echo "<br>"; ?>
Output
The following is the output −
bool(true) bool(true)
Example
Let us see another example −
<?php var_dump(IntlChar::isJavaIDStart("111")); echo "<br>"; var_dump(IntlChar::isJavaIDStart("K")); echo "<br>"; var_dump(IntlChar::isJavaIDStart("Kite")); echo "<br>"; var_dump(IntlChar::isJavaIDStart("123 ")); echo "<br>"; ?>
Output
The following is the output −
NULL bool(true) NULL NULL