PHP | IntlChar getPropertyEnum() Function Last Updated : 27 Aug, 2019 Comments Improve Suggest changes Like Article Like Report 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 long, short and many others. Additionally, the synthetic names "General_Category_Mask" (abbreviated as "gcm"), is mapped by the function to the IntlChar:: PROPERTY_GENERAL_CATEGORY_MASK property. Also, note that these names that are mentioned here are not going to be present in PropertyAliases.txt. This function gets complimented by IntlChar::getPropertyName() function and vice-versa. Syntax: int IntlChar::getPropertyEnum( $alias ) Parameters: This function accepts a single parameter alias whose name of the property that is to be matched. Comparisons for the name are made using the "loose matching". These are all described in the PropertyAliases.txt. Return Values: If it is a constant value, it will return an IntlChar::PROPERTY_ value. Otherwise, if the name that is given there, is no matching with any property at all, then IntlChar:: PROPERTY_INVALID_CODE is going to be returned. Below program illustrates the IntlChar::getPropertyEnum() function in PHP: Program: php <?php // PHP program to uses IntlChar::getPropertyEnum() // function // This function uses IntlChar::PROPERTY_* constants var_dump(IntlChar::getPropertyEnum('Bidi_Class') === IntlChar ::PROPERTY_NUMERIC_VALUE); var_dump(IntlChar::getPropertyEnum('script') === IntlChar ::PROPERTY_SCRIPT); var_dump(IntlChar::getPropertyEnum('IDEOGRAPHIC')=== IntlChar ::BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_ARROWS); var_dump(IntlChar::getPropertyEnum('Some made-up string') === IntlChar::PROPERTY_INVALID_CODE); var_dump(IntlChar::getPropertyEnum('script') === IntlChar ::PROPERTY_NUMERIC_TYPE); ?> Output: bool(false) bool(true) bool(false) bool(true) bool(false) References: https://www.php.net/manual/en/intlchar.getpropertyenum.php Comment More infoAdvertise with us Next Article PHP | IntlChar getPropertyEnum() Function S SohomPramanick Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Intl Similar Reads 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 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 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 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 | 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 PHP | IntlChar getUnicodeVersion() Function The IntlChar::getUnicodeVersion() function is an inbuilt function in PHP which is used to get the Unicode version. The Unicode standard version information is filled into an array. For example, Unicode version 2.2.1 is represented as an array with the values [2, 2, 1, 0]. Syntax: array IntlChar::get 1 min read PHP | getprotobynumber() Function The getprotobynumber() function is an inbuilt function in PHP which returns the protocol name for a specified protocol number. Syntax: string getprotobynumber( int $protocol_number ) Parameters: This function accepts single parameter $protocol_number which is required. It specifies the protocol numb 1 min read Like