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 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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<?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)); 
  
?>

chevron_right


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

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.