PHP | IntlChar getPropertyValueName() Function Last Updated : 27 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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, $value, $nameChoice = IntlChar::LONG_PROPERTY_NAME ) Parameters: This function accepts three parameters as mentioned above and described below: property: It is used for the task of lookups, based on the Unicode property. It is quite similar to the IntlChar::PROPERTY_* constants. False will be returned, if it will be out of the range, or if the method isn't compatible with the given value. value: For a given property, it will be a selector. False will be returned, if it will be out of the range, or if the method isn't compatible with the given value. The range of the values will be from 0 to maximum. Apart from these, there will also be a couple of exceptions. They are: IntlChar::PROPERTY_CANONICAL_COMBINING_CLASS values are not at all contiguous. Also, the range will be from 0 to 240. IntlChar::PROPERTY_BLOCK values begin at the non-zero value IntlChar::BLOCK_CODE_BASIC_LATIN. nameChoice: To see which names to get, it will be a selector for that. False will be returned, if it will be out of the range, or if the method isn't compatible with the given value. Mostly all the values will be long ones. Some might be having short names, but others will not. For additional names, Unicode will allow. If it is present, they will be returned by adding 1, 2, 3, etc to IntlChar::LONG_PROPERTY_NAME. Return Values: If either the nameChoice or the property is totally out of the range then False will be returned. Otherwise, the name is going to be returned. If a nameChoice will be given, then it returns False. If False is returned for IntlChar::SHORT_PROPERTY_NAME, then IntlChar::LONG_PROPERTY_NAME (and higher) may still return a non-False value. Program: php <?php // PHP program to uses IntlChar::getPropertyValueName() // function var_dump(IntlChar::getPropertyValueName (IntlChar::PROPERTY_INT_START, IntlChar::BLOCK_CODE_TELUGU)); var_dump(IntlChar::getPropertyValueName (IntlChar::PROPERTY_GENERAL_CATEGORY, IntlChar:: BLOCK_CODE_IPA_EXTENSIONS, IntlChar::SHORT_PROPERTY_NAME)); var_dump(IntlChar::getPropertyValueName (IntlChar::PROPERTY_LINE_BREAK, IntlChar:: BLOCK_CODE_DINGBATS, IntlChar::LONG_PROPERTY_NAME)); var_dump(IntlChar::getPropertyValueName (IntlChar::PROPERTY_BINARY_LIMIT, IntlChar:: BLOCK_CODE_BAMUM, IntlChar::LONG_PROPERTY_NAME + 1)); ?> Output: string(21) "Right_To_Left_Isolate" string(2) "Lo" bool(false) bool(false) Reference: https://www.php.net/manual/en/intlchar.getpropertyvaluename.php Comment More infoAdvertise with us Next Article PHP | IntlChar getPropertyValueName() Function A AbhinandanBhatnagar Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Intl Similar Reads 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 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 getIntPropertyValue() Function 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: $ 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 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 Like