IntlChar::isIDIgnorable() function in PHP

The IntlChar::isIDIgnorable() function is used to determine whether the entered value is an ignorable character or not.

Syntax

bool IntlChar::isIDIgnorable(val)

Parameters

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

Return

The IntlChar::isIDIgnorable()function returns TRUE if the val is an ignorable character.

Example

The following is an example −

";
   var_dump(IntlChar::isIDIgnorable("u{007F}"));
   echo "
";    var_dump(IntlChar::isIDIgnorable("A")); ?>

Output

The following is the output −

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

142 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements