- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 1046 Articles for PHP
![Arjun Thakur](https://www.tutorialspoint.com/assets/profiles/13574/profile/60_74441-1560315595.jpg)
276 Views
The imagepolygon() function is used to draw a polygon.Syntaxbool imagepolygon( $img, $points, $num_points, $color)Parameters$img: Create a blank image with imagecreatetruecolor() function.$points: An array with vertices of polygon.$num_points: Total number of vertices in a polygon.$color: A color identifier created with imagecolorallocate() function.ReturnThe imagepolygon() function returns TRUE on success or FALSE on failure.ExampleThe following is an example:OutputThe following is the output:
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
31 Views
The gmp_rootrem() function is used to calculate the nth root of a GMP number. It returns the integer component of the nth root and remainder.Syntaxgmp_rootrem($n,$root)Parametersn − It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.root − The root of the number nReturnThe gmp_rootrem()function returns the integer component of the nth root and remainder.ExampleThe following is an example −OutputThe following is the output −Array ( [0] => GMP Object ( [num] => 3 ) [1] => GMP Object ( [num] =>6 ) )
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
26 Views
The IntlChar getCombiningClass() function is used to get the combining class of the value val.Syntaxint IntlChar::getCombiningClass (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar getCombiningClass() function returns the combining class of the value val.ExampleThe following is an example −OutputThe following is the output −int(0) NULL
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
14 Views
The IntlChar getUnicodeVersion() function is used to get the Unicode version.Syntaxarray IntlChar::getUnicodeVersion ()ParametersNAReturnThe IntlChar getUnicodeVersion() function returns thearray containing the Unicode version number.ExampleThe following is an example −OutputThe following is the output −array(4) { [0]=> int(6) [1]=> int(3) [2]=> int(0) [3]=> int(0) }
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
49 Views
The IntlChar getFC_NFKC_Closure() function is used to get the FC_NFKC_Closure property for the value val.SyntaxIntlChar::getFC_NFKC_Closure(val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar getFC_NFKC_Closure()function returns the FC_NFKC_Closure property string for the entered value val.ExampleThe following is an example −OutputThe following is the output −NULL string(0) "" NULL NULL
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
27 Views
The IntlChar getBidiPairedBracket() function is used to get the paired bracket character for the value val.SyntaxIntlChar::getBidiPairedBracket (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar getBidiPairedBracket()function returns the mapped paired bracket.ExampleThe following is an example −OutputThe following is the output −int(15) string(1) ")" NULL string(1) "J"
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
31 Views
The IntlChar getBlockCode() function is used to get the Unicode allocation block containing the value val.SyntaxIntlChar::getBlockCode (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar getBlockCode()function returns the block value for val. The following is the listing −IntlChar::BLOCK_CODE_BASIC_LATINIntlChar::BLOCK_CODE_GREEKIntlChar::BLOCK_CODE_MISCELLANEOUS_SYMBOLSExampleThe following is an example −OutputThe following is the output −bool(true) bool(false) bool(false)
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
34 Views
The IntlChar digit() function is used to display the decimal digit value of a code point for a given radix.Syntaxint IntlChar::digit( $val, $radix )Parametersval − An integer or character encoded as a UTF-8 string.radix − The radix value. Default is 10.ReturnThe IntlChar digit() function returns the number represented by the character in the given radix.ExampleThe following is an example −OutputThe following is the output −int(2) bool(false) bool(false)
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
45 Views
The IntlChar isdefined() function checks whether the entered value is defined or not.Syntaxbool IntlChar::isdefined (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar isdefined() function returns TRUE if val is a defined character.ExampleThe following is an example −OutputThe following is the output −bool(true) bool(true) NULL NULL
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
19 Views
The IntlChar charType() function is used to get the general category value for the entered value.Syntaxint IntlChar::charType (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar charType()function returns the following general category content −IntlChar::CHAR_CATEGORY_UNASSIGNEDIntlChar::CHAR_CATEGORY_GENERAL_OTHER_TYPESIntlChar::CHAR_CATEGORY_UPPERCASE_LETTERIntlChar::CHAR_CATEGORY_LOWERCASE_LETTERIntlChar::CHAR_CATEGORY_TITLECASE_LETTERIntlChar::CHAR_CATEGORY_MODIFIER_LETTERIntlChar::CHAR_CATEGORY_OTHER_LETTERIntlChar::CHAR_CATEGORY_NON_SPACING_MARKIntlChar::CHAR_CATEGORY_ENCLOSING_MARKIntlChar::CHAR_CATEGORY_COMBINING_SPACING_MARKIntlChar::CHAR_CATEGORY_DECIMAL_DIGIT_NUMBERIntlChar::CHAR_CATEGORY_LETTER_NUMBERIntlChar::CHAR_CATEGORY_OTHER_NUMBERIntlChar::CHAR_CATEGORY_SPACE_SEPARATORIntlChar::CHAR_CATEGORY_LINE_SEPARATORIntlChar::CHAR_CATEGORY_PARAGRAPH_SEPARATORIntlChar::CHAR_CATEGORY_CONTROL_CHARIntlChar::CHAR_CATEGORY_FORMAT_CHARIntlChar::CHAR_CATEGORY_PRIVATE_USE_CHARIntlChar::CHAR_CATEGORY_SURROGATEIntlChar::CHAR_CATEGORY_DASH_PUNCTUATIONIntlChar::CHAR_CATEGORY_START_PUNCTUATIONIntlChar::CHAR_CATEGORY_END_PUNCTUATIONIntlChar::CHAR_CATEGORY_CONNECTOR_PUNCTUATIONIntlChar::CHAR_CATEGORY_OTHER_PUNCTUATIONIntlChar::CHAR_CATEGORY_MATH_SYMBOLIntlChar::CHAR_CATEGORY_CURRENCY_SYMBOLIntlChar::CHAR_CATEGORY_MODIFIER_SYMBOLIntlChar::CHAR_CATEGORY_OTHER_SYMBOLIntlChar::CHAR_CATEGORY_INITIAL_PUNCTUATIONIntlChar::CHAR_CATEGORY_FINAL_PUNCTUATIONIntlChar::CHAR_CATEGORY_CHAR_CATEGORY_COUNTExampleThe following is an example −OutputThe following is the output −bool(false) bool(false) bool(false) bool(true) bool(true)Read More