IntlChar::isIDStart() function in PHP

The IntlChar::isIDStart() function is used to check whether the entered character is permissible since the first character is anidentifier or not.

Syntax

bool IntlChar::isIDStart(val)

Parameters

  • val − A character or integer value encoded as a UTF-8 string.

Return

The IntlChar::isIDStart()function returns TRUE if val is an identifier character.

Example

The following is an example −

";
   var_dump(IntlChar::isIDStart("9"));
   echo "
";    var_dump(IntlChar::isIDStart("A")); ?>

Output

The following is the output −

NULL
bool(false)
bool(true)
Updated on: 2019-12-30T08:39:21+05:30

68 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements