Open In App

PHP | IntlChar getIntPropertyMinValue() Function

Improve
Improve
Like Article
Like
Save
Share
Report

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 to get the minimum value.

Syntax:

int IntlChar::getIntPropertyMinValue( $property )

Parameters: This function accepts 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. It will return 0 if the selector of the property is considerably out of the range.

Below program illustrates the IntlChar::getIntPropertyMinValue() function in PHP:

Program:




<?php
  
// PHP program to uses IntlChar::getIntPropertyMinValue()
// function
  
// This function uses IntlChar::PROPERTY_* constants
var_dump(IntlChar::getIntPropertyMinValue
                    (IntlChar::CHAR_CATEGORY_ENCLOSING_MARK));
                      
var_dump(IntlChar::getIntPropertyMinValue
                            (IntlChar::BLOCK_CODE_BENGALI));
                              
var_dump(IntlChar::getIntPropertyMinValue
                (IntlChar::PROPERTY_GRAPHEME_CLUSTER_BREAK));
                  
var_dump(IntlChar::getIntPropertyMinValue
                    (IntlChar::CHAR_CATEGORY_MODIFIER_SYMBOL));
                      
var_dump(IntlChar::getIntPropertyMinValue
                                        (IntlChar::NT_DIGIT));
                                          
var_dump(IntlChar::getIntPropertyMinValue
                (IntlChar::LB_CONDITIONAL_JAPANESE_STARTER));
                  
var_dump(IntlChar::getIntPropertyMinValue(49)); 
  
?>


Output:

int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)

Reference: https://www.php.net/manual/en/intlchar.getintpropertyminvalue.php


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