The IntlChar::hasBinaryProperty() function is an inbuilt function in PHP which is used to checks a binary Unicode property for a code point.
bool IntlChar::hasBinaryProperty( $codepoint, $property )
Parameters: This function accepts two parameters as mentioned above and described below:
- $codepoint: The $codepoint value is an integer values or character, which is encoded as a UTF-8 string.
- $property: This stores the IntlChar::PROPERTY_* constants.
Return Value: This function returns boolean value (true or false) based on binary Unicode property.
Below programs illustrate the IntlChar::hasBinaryProperty() function in PHP:
bool(true) NULL bool(true) bool(false)
bool(false) bool(true) bool(false) bool(true) bool(false) NULL NULL
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.