The IntlChar::getCombiningClass() function is an inbuilt function in PHP which is used to get the combining class of the code point.
Syntax:
int IntlChar::getCombiningClass ( $codepoint )
Parameters: This function accepts a single parameter $codepoint which is mandatory. The $codepoint value is an integer values or character, which is encoded as a UTF-8 string.
Return Value: This function returns the combining class of the code point.
Below programs illustrate the IntlChar::getCombiningClass() function in PHP:
Program 1:
<?php // PHP function to illustrate // the use of IntlChar::getCombiningClass() // Input data is string type var_dump(IntlChar::getCombiningClass("\p{143}")); // Input data is character type var_dump(IntlChar::getCombiningClass(" ")); // Input data is unicode character type var_dump(IntlChar::getCombiningClass("\u{350}")); // Input data is string type var_dump(IntlChar::getCombiningClass("XYZ")); // Input data is unicode character type var_dump(IntlChar::getCombiningClass("\u{0358}")); ?> |
NULL int(0) int(230) NULL int(232)
Program 2:
<?php // PHP code to illustrate getCombiningClass() // Declare an array $arr $arr = array("\u{314}", "GeeksforGeeks", "^", "\u{0324}", "6", "\n"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::getCombiningClass($val)); } ?> |
int(230) NULL int(0) int(220) int(0) int(0)
Related Articles:
- PHP | IntlChar charType() Function
- PHP | IntlChar::iscntrl() Function
- PHP | IntlChar::totitle() Function
Reference: http://php.net/manual/en/intlchar.getcombiningclass.php
Recommended Posts:
- PHP | IntlChar::isJavaIDStart() Function
- PHP | IntlChar::isJavaSpaceChar() Function
- PHP | IntlChar::iscntrl() Function
- PHP | IntlChar::isdigit() Function
- PHP | IntlChar::isblank() Function
- PHP | IntlChar::isalpha() Function
- PHP | IntlChar::isbase() Function
- PHP | IntlChar::isalnum () Function
- PHP | IntlChar::isprint() Function
- PHP | IntlChar::isupper() Function
- PHP | IntlChar::islower() Function
- PHP | IntlChar::isxdigit() Function
- PHP | IntlChar::ispunct() Function
- PHP | IntlChar::isspace() Function
- PHP | IntlChar::isUUppercase() Function
- PHP | IntlChar::isWhitespace() Function
- PHP | IntlChar::charDigitValue() Function
- PHP | IntlChar::isIDIgnorable() Function
- PHP | IntlChar::charName() Function
- PHP | IntlChar::charMirror() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

