Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 2865 of 3366
1K+ Views
The imagefilledrectangle() function draws a filled rectangle.Syntaximagefilledrectangle( $img, $x1, $y1, $x2, $y2, $color )Parametersimage Create a blank image with imagecreatetruecolor().x1x-coordinate for point 1.y1 y-coordinate for point 1.x2 x-coordinate for point 2.y2 y-coordinate for point 2.color The fill color.ReturnThe imagefilledrectangle() function returns TRUE on success or FALSE on failure.ExampleThe following is an example:OutputThe following is the output:
167 Views
The imagefilledellipse() function is used to draw a filled ellipse.Syntaximagefilledellipse( $img, $cx, $cy, $width, $height, $color )Parametersimg This creates a blank image with imagecreatetruecolor()cx x-coordinate of the center.cy y-coordinate of the center.width The ellipse width.height The ellipse height.color The fill color.ReturnThe imagefilledellipse() function returns TRUE on success or FALSE on failure.ExampleThe following is an example:OutputThe following is the output:
79 Views
The gmp_or() function computes the bitwise OR of two GMP numbers.Syntaxgmp_or(n1, n2)Parametersn1: The first GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.n2: The second GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.ReturnThe gmp_or() function returns the OR of the GMP numbers. The result is also a GMP number.ExampleThe following is an example:OutputThe following is the output:7
95 Views
The IntlChar isgraph()function checks that the entered value is a graphic character or not.Syntaxbool IntlChar::isgraph (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar isgraph() function returns TRUE of val is a graphic character.ExampleThe following is an example −OutputThe following is the output −bool(true) bool(false) bool(false) bool(true)
56 Views
The IntlChar isMirrored()function is used to check whether the entered value contains Bidi_Mirrored property or not.Syntaxbool IntlChar::isMirrored (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar isMirrored()function returns TRUE if the entered value has the Bidi_Mirrored propertyExampleThe following is an example −OutputThe following is the output −bool(true) bool(true) bool(false) bool(false)
105 Views
TheIntlChar::isblank() function checks whether the entered value isblank or horizontal space character.SyntaxIntlChar::isblank (val)Parametersval − An integer or character encoded as a UTF-8 string.ReturnThe IntlChar::isblank() function returns TRUE if the entered value isblank or horizontal space character.ExampleThe following is an example −OutputThe following is the output −bool(true) NULL bool(false) bool(false)
98 Views
The IntlChar::islower() function check whether the given input character is a lowercase character or not.Syntaxbool IntlChar::islower(val)Parametersval − A character encoded as a UTF-8 string.ReturnThe IntlChar::islower() function returns TRUE if the entered value is a lowercase character.ExampleThe following is an example −OutputThe following is the output −bool(true) bool(false)
184 Views
The IntlChar::isupper()function check whether the given input character is an uppercase character or not.Syntaxbool IntlChar::isupper(val)Parametersval − A character encoded as a UTF-8 string.ReturnThe IntlChar::isupper()function returns TRUE if the entered value is an uppercase character.ExampleThe following is an example −OutputThe following is the output −bool(false) bool(true)
44 Views
The IntlChar::charDigitValue() function checks if the entered value is a decimal digit value or not.Syntaxint IntlChar::charDigitValue(val)Parametersval − A character or integer value encoded as a UTF-8 string.ReturnThe IntlChar::charDigitValue() function returns TRUE if the entered value is a decimal digit.ExampleThe following is an example −OutputThe following is the output −NULL int(1) NULL NULL
59 Views
The IntlChar::isWhitespace() function checks whether the given input character is a WhiteSpace character or not.SyntaxIntlChar::isWhitespace(val)Parametersval − A character or integer value encoded as a UTF-8 string.ReturnThe IntlChar::isWhitespace()function returns TRUE if val is a WhiteSpace character.ExampleThe following is an example −OutputThe following is the output −bool(false) bool(true) NULL