PHP | IntlChar getIntPropertyValue() Function Last Updated : 26 Apr, 2021 Comments Improve Suggest changes Like Article Like Report The IntlChar::getIntPropertyValue() function is an inbuilt function in PHP which is used to get the value for Unicode property for a code point.Syntax: int IntlChar::getIntPropertyValue( $codepoint, $property ) Parameter: This function accepts two parameters as mentioned above and described below: $codepoint: The input parameter $codepoint is a character or integer value, which is encoded as a UTF-8 string.$property It store the unicode character constant. Example: IntlChar::PROPERTY_* constants. Return Values: It returns the numeric value which is directly the property value or, enumerated properties, corresponds to the numeric value of the enumerated constant of the respective property value enumeration type.It returns the boolean value (0/1 or FALSE/TRUE) for binary Unicode properties.It returns the bit-mask value for mask properties.It returns 0 if the property is out of bounds or if the Unicode version does not have data for the property at all, or not for this code point. Below programs illustrate the IntlChar::getIntPropertyValue() function in PHP:Program 1: php <?php // Input data is alphabet character type var_dump(IntlChar::getIntPropertyValue("A", IntlChar::PROPERTY_ALPHABETIC) === 1); // Input data is mirrored brackets character type var_dump(IntlChar::getIntPropertyValue("[", IntlChar::PROPERTY_BIDI_MIRRORED) === 1); // Input data is Space character type var_dump(IntlChar::getIntPropertyValue(" ", IntlChar::PROPERTY_POSIX_BLANK) === 1); // Input data is special character type var_dump(IntlChar::getIntPropertyValue("?", IntlChar::PROPERTY_BLOCK) === IntlChar::BLOCK_CODE_GREEK); ?> Output: bool(true) bool(true) bool(true) bool(false) Program 2: php <?php // Input data is alphabet character type var_dump(IntlChar::getIntPropertyValue("A", IntlChar::PROPERTY_ALPHABETIC) === 1); // Input data is special character type var_dump(IntlChar::getIntPropertyValue("|", IntlChar::PROPERTY_BIDI_MIRRORED) === 1); // Input data is special character type var_dump(IntlChar::getIntPropertyValue("?", IntlChar::PROPERTY_BLOCK) === IntlChar::BLOCK_CODE_GREEK); // Input data is numeric character type var_dump(IntlChar::getIntPropertyValue("9", IntlChar::PROPERTY_NUMERIC_TYPE) === 1 ); // Input data is math character type var_dump(IntlChar::getIntPropertyValue("=", IntlChar::PROPERTY_MATH) === 1 ); ?> Output: bool(true) bool(false) bool(false) bool(true) bool(true) Reference: https://www.php.net/manual/en/intlchar.getintpropertyvalue.php Comment More infoAdvertise with us Next Article PHP | IntlChar getPropertyValueEnum() Function V VigneshKannan3 Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Intl Similar Reads PHP | IntlChar getIntPropertyMinValue() Function The IntlChar::getIntPropertyMinValue() function is an inbuilt function in PHP which is used to get the minimum value for a Unicode property. This could be used to access the information as well as manipulating the Unicode characters. For an enumerated/integer/binary Unicode property, this is going t 1 min read PHP | IntlChar getIntPropertyMaxValue() Function The IntlChar::getIntPropertyMaxValue() function is an inbuilt function in PHP which is used to get the maximum value for a Unicode property. This could be used to access the information as well as manipulating the Unicode character. For an enumerated/integer/binary Unicode property, this is going to 1 min read PHP | IntlChar getPropertyValueEnum() Function The IntlChar getPropertyValueEnum() function is an inbuilt function in PHP which is used to get the property value form the given value. Syntax: int IntlChar::getPropertyValueEnum( $property, $name ) Parameters: This function accepts two parameters as mentioned above and described below: $property: 1 min read PHP | IntlChar getPropertyValueName() Function The IntlChar::getPropertyValueName() function is an inbuilt function in PHP which is used to get the Unicode name for a property value. It will be according to the data present in PropertyValueAliases.txt, which is the Unicode DataBase file. Syntax: string IntlChar::getPropertyValueName( $property, 2 min read PHP | IntlChar getPropertyName() Function The IntlChar::getPropertyName() function is an inbuilt function in PHP which is used to get the Unicode name for a given property which is given in the Unicode database file PropertyAliases.txt. This function maps the property IntlChar::PROPERTY_GENERAL_CATEGORY_MASK to the synthetic names "gcm" / " 2 min read PHP | IntlChar getPropertyEnum() Function The IntlChar::getPropertyEnum() function is an inbuilt function in PHP which is used to get the property constant value for a given property name. The property name is going to be specified in PropertyAliases.txt, which is a Unicode Database file. All types of variants are recognized in this, be it 2 min read Like