IntlChar::isbase() function in PHP

The IntlChar::isbase() function is used to check the given input data is a base character or not.

Syntax

IntlChar::isbase( val)

Parameters

  • val − An integer or character encoded as a UTF-8 string. Required.

Return

The IntlChar::isbase() function returns TRUE if the val is a base character.

Example

The following is an example −

";
   var_dump(IntlChar::isbase("EJklomno"));
   echo "
";    var_dump(IntlChar::isbase("123"));    echo "
";    var_dump(IntlChar::isbase("5757jhgbjh")); ?>

Output

The following is the output −

bool(true)
NULL
NULL
NULL
Updated on: 2019-12-30T07:50:46+05:30

132 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements