PHP | IntlChar getPropertyValueEnum() Function Last Updated : 27 Aug, 2019 Comments Improve Suggest changes Like Article Like Report 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: It stores the IntlChar::PROPERTY_* constants. $name: It stores the name value which to be stored. Return Value: If the given name does not match to any property or the property is invalid then it returns the corresponding value integer, or IntlChar::PROPERTY_INVALID_CODE. Below programs illustrate the IntlChar::getPropertyValueEnum() function in PHP: Program: php <?php // PHP program to implement IntlChar::getPropertyValueEnum() function // Unicode property constant and it corresponding name is same var_dump(IntlChar::getPropertyValueEnum(IntlChar::PROPERTY_BIDI_CLASS, 'RIGHT_TO_LEFT') === IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT); // Unicode property constant and it corresponding name is same var_dump(IntlChar::getPropertyValueEnum(IntlChar::PROPERTY_BLOCK, 'greek') === IntlChar::BLOCK_CODE_GREEK); // Unicode property constant and it name is corresponding name is same var_dump(IntlChar::getPropertyValueEnum(IntlChar::PROPERTY_BIDI_CLASS, 'some made-up string') === IntlChar::PROPERTY_INVALID_CODE); // Unicode property constant and it name is not matching so it return false var_dump(IntlChar::getPropertyValueEnum(IntlChar::PROPERTY_BIDI_CLASS, 'RIGHT_TO_LEFT') === IntlChar::BLOCK_CODE_GREEK); ?> Output: bool(true) bool(true) bool(true) bool(false) Reference: https://www.php.net/manual/en/intlchar.getpropertyvalueenum.php Comment S snehal98doshi Follow 0 Improve S snehal98doshi Follow 0 Improve Article Tags : Web Technologies PHP PHP-function PHP-Intl Explore PHP Tutorial 8 min read BasicsPHP Syntax 4 min read PHP Variables 5 min read PHP | Functions 8 min read PHP Loops 4 min read ArrayPHP Arrays 5 min read PHP Associative Arrays 4 min read Multidimensional arrays in PHP 5 min read Sorting Arrays in PHP 4 min read OOPs & InterfacesPHP Classes 2 min read PHP | Constructors and Destructors 5 min read PHP Access Modifiers 4 min read Multiple Inheritance in PHP 4 min read MySQL DatabasePHP | MySQL Database Introduction 4 min read PHP Database connection 2 min read PHP | MySQL ( Creating Database ) 3 min read PHP | MySQL ( Creating Table ) 3 min read PHP AdvancePHP Superglobals 6 min read PHP | Regular Expressions 12 min read PHP Form Handling 4 min read PHP File Handling 4 min read PHP | Uploading File 3 min read PHP Cookies 9 min read PHP | Sessions 7 min read Like