PHP | IntlChar getPropertyName() Function Last Updated : 13 Sep, 2021 Comments Improve Suggest changes Like Article Like Report 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" / "General_Category_Mask" which are not in the PropertyAliases.txt. This function is the compliments of IntlChar::getPropertyEnum() function. Syntax: string IntlChar::getPropertyName( $property, $nameChoice = IntlChar::LONG_PROPERTY_NAME ) Parameters: This function accepts two parameters as mentioned above and described below: $property: This parameter holds the Unicode Property constants (IntlChar::PROPERTY_* constants) The list of property constants are: IntlChar::PROPERTY_ALPHABETICIntlChar::PROPERTY_BIDI_MIRROREDIntlChar::PROPERTY_BIDI_CLASSIntlChar::PROPERTY_DASHIntlChar::PROPERTY_IDEOGRAPHICIntlChar::PROPERTY_LOWERCASEIntlChar::PROPERTY_MATHIntlChar::PROPERTY_UPPERCASEIntlChar::PROPERTY_WHITE_SPACE etc...$nameChoice This parameter holds the selector which gets the which Unicode name. Return Values: This function returns the name on success or False if either the property or name choice is out of range.Below programs illustrate the IntlChar::getPropertyName() function in PHP:Program 1: php <?php // Program illustrates the IntlChar::getPropertyName() function var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_BIDI_MIRRORED)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_BIDI_MIRRORED, IntlChar::SHORT_PROPERTY_NAME)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_BIDI_MIRRORED, IntlChar::LONG_PROPERTY_NAME)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_BIDI_MIRRORED, IntlChar::LONG_PROPERTY_NAME + 1)); ?> Output: string(13) "Bidi_Mirrored" string(6) "Bidi_M" string(13) "Bidi_Mirrored" bool(false) Program 2: php <?php // Program illustrates the IntlChar::getPropertyName() function var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_IDEOGRAPHIC)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_IDEOGRAPHIC, IntlChar::SHORT_PROPERTY_NAME)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_IDEOGRAPHIC, IntlChar::LONG_PROPERTY_NAME)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_IDEOGRAPHIC, IntlChar::LONG_PROPERTY_NAME + 1)); ?> Output: string(11) "Ideographic" string(4) "Ideo" string(11) "Ideographic" bool(false) Program 3: php <?php // Program illustrates the IntlChar::getPropertyName() function var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_GENERAL_CATEGORY_MASK)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_GENERAL_CATEGORY_MASK, IntlChar::SHORT_PROPERTY_NAME)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_GENERAL_CATEGORY_MASK, IntlChar::LONG_PROPERTY_NAME)); var_dump(IntlChar::getPropertyName(IntlChar::PROPERTY_GENERAL_CATEGORY_MASK, IntlChar::LONG_PROPERTY_NAME + 1)); ?> Output: string(21) "General_Category_Mask" string(3) "gcm" string(21) "General_Category_Mask" bool(false) Reference https://www.php.net/manual/en/intlchar.getpropertyname.php Comment More infoAdvertise with us Next Article PHP | IntlChar getPropertyName() Function V VigneshKannan3 Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Intl Similar Reads 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 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 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 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 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 hasBinaryProperty() function The IntlChar::hasBinaryProperty() function is an inbuilt function in PHP which is used to checks a binary Unicode property for a code point. Syntax: bool IntlChar::hasBinaryProperty( $codepoint, $property ) Parameters: This function accepts two parameters as mentioned above and described below: $cod 2 min read PHP | getprotobyname() Function The getprotobyname() function is an inbuilt function in PHP which returns the protocol number for a specified protocol name. Syntax: int getprotobyname( string $name ) Parameters: This function accepts single parameter $name which is required. It specifies the protocol name, like tcp, icmp, udp, ip 1 min read PHP | IntlChar getNumericValue() Function The IntlChar::getNumericValue() function is an inbuilt function in PHP which is used to get the numeric value for a Unicode code point as defined in the Unicode Character Database. Syntax: float IntlChar::getNumericValue( $codepoint ) Parameters: This function accepts a single parameter $codepoint w 2 min read PHP | IntlCalendar getType() Function The IntlCalendar::getType() function is an inbuilt function in PHP which is used to get the calendar type in terms of string. The "calendar" is the valid value of keywords. Syntax: Object oriented stylestring IntlCalendar::getType( void )Procedural stylestring intlcal_get_type( IntlCalendar $cal ) P 1 min read Like