Found 1046 Articles for PHP

imagefilledrectangle() function in PHP

Arjun Thakur
Updated on 31-Dec-2019 06:20:11

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

imagefilledellipse() function in PHP

Chandu yadav
Updated on 31-Dec-2019 06:19:07

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

gmp_or() function in PHP

Ankith Reddy
Updated on 30-Dec-2019 10:53:17

31 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

IntlChar isgraph() function in PHP

Samual Sam
Updated on 30-Dec-2019 10:13:27

48 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)

IntlChar isMirrored() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 10:12:25

25 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)

IntlChar::isblank() function in PHP

Samual Sam
Updated on 30-Dec-2019 10:11:54

55 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)

IntlChar::islower() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 10:11:24

47 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)

IntlChar::isupper() function in PHP

Samual Sam
Updated on 30-Dec-2019 08:47:11

117 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)

IntlChar::charDigitValue() function in PHP

karthikeya Boyini
Updated on 30-Dec-2019 08:46:05

25 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

IntlChar::isWhitespace() function in PHP

Samual Sam
Updated on 30-Dec-2019 08:43:35

22 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

Advertisements