IntlChar getCombiningClass() function in PHP



The IntlChar getCombiningClass() function is used to get the combining class of the value val.

Syntax

int IntlChar::getCombiningClass (val)

Parameters

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

Return

The IntlChar getCombiningClass() function returns the combining class of the value val.

Example

The following is an example −

<?php
   var_dump(IntlChar::getCombiningClass(" "));
   echo "<br>";
   var_dump(IntlChar::getCombiningClass("PQRST"));
?>

Output

The following is the output −

int(0)
NULL
Updated on: 2019-12-31T06:59:42+05:30

56 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements