Open In App
Related Articles

PHP | IntlChar getIntPropertyMaxValue() Function

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
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 get the maximum value. Syntax:
int IntlChar::getIntPropertyMaxValue( $property ) 
Parameters: This function accepts a single parameter $property which is used for the task of lookups, based on the Unicode property. It is quite similar to the IntlChar::PROPERTY_* constants. Return Values: For a Unicode property, it is the maximum value that is going to be returned by the IntlChar::getIntPropertyValue() function. If <=0 then the selector of this property is considered out of the range. Below program illustrate the IntlChar::getIntPropertyMaxValue() function in PHP: Program:
<?php
  
// PHP program to uses IntlChar::getIntPropertyMaxValue()
// function
  
// This function uses IntlChar::PROPERTY_* constants
var_dump(IntlChar::getIntPropertyMaxValue
                    (IntlChar::CHAR_CATEGORY_ENCLOSING_MARK));
var_dump(IntlChar::getIntPropertyMaxValue
                              (IntlChar::BLOCK_CODE_BENGALI));
var_dump(IntlChar::getIntPropertyMaxValue
                 (IntlChar::PROPERTY_GRAPHEME_CLUSTER_BREAK));
var_dump(IntlChar::getIntPropertyMaxValue
                   (IntlChar::CHAR_CATEGORY_MODIFIER_SYMBOL));
var_dump(IntlChar::getIntPropertyMaxValue(IntlChar::NT_DIGIT));
  
var_dump(IntlChar::getIntPropertyMaxValue
                  (IntlChar::LB_CONDITIONAL_JAPANESE_STARTER));
var_dump(IntlChar::getIntPropertyMaxValue(69)); 
  
?>

                    
Output:
int(1)
int(1)
int(12)
int(1)
int(1)
int(1)
int(-1)
Reference: https://www.php.net/manual/en/intlchar.getintpropertymaxvalue.php

Last Updated : 27 Aug, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads