The IntlChar::getBlockCode() function is an inbuilt function in PHP which is used to get the Unicode allocation block containing the code point. This function returns the Unicode allocation block that contains the character.
int IntlChar::getBlockCode ( $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 block value for $codepoint. Some block value of codepoint are listed below:
Below programs illustrate the IntlChar::getBlockCode() function in PHP:
bool(true) bool(false) bool(false) bool(true) bool(false)
int(1) NULL int(1) NULL int(1) int(1)
- PHP | IntlChar::iscntrl() Function
- PHP | IntlChar::totitle() Function
- PHP | IntlChar charType() Function
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.