Found 34486 Articles for Programming

getimagesize() function in PHP

Chandu yadav
Updated on 31-Dec-2019 06:22:42

2K+ Views

The getimagesize() function is used to display the size of an image.Syntaxgetimagesize(file_name, img_info)Parametersfile_name: The file image i.e. the image path.img_info: Extract some extended information from the image file. Supports only JFIF files.ReturnThe getimagesize() function returns an array element with height, width, type, MIME type of the image, etc.ExampleThe following is an example: Live DemoOutputThe following is the output:Array ( [0] => 205 [1] => 120 [2] => 3 [3] => width="205" height="120" [bits] => 8 [mime] => image/png)

imagefill() function in PHP

Ankith Reddy
Updated on 31-Dec-2019 06:21:35

253 Views

The imagefill() function is used to fill the image.Syntaximagefill(img, x, y, color)ParametersimgCreate a blank image with imagecreatetruecolor().x x-coordinate of start pointy y-coordinate of start pointcolor The fill color.ReturnThe imagefill() function returns TRUE on success or FALSE on failure.ExampleThe following is an example:OutputThe following is the output:

imagedashedline() function in PHP

George John
Updated on 31-Dec-2019 06:20:51

39 Views

The imagedashedline() function draws a dashed line.Syntaximagedashedline( $image , $x1 , $y1 , $x2 , $y2 , $color )Parametersimage Create a blank image with imagecreatetruecolor().x1 Upper left x-coordinatey1 Upper left y-coordinatex2 Bottom right x-coordinatey2 Bottom right y-coordinatecolor The fill color.ReturnThe function returns TRUE on success or FALSE on failure.ExampleThe following is an example:OutputThe following is the output:

imagefilledrectangle() function in PHP

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

777 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

97 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

33 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

49 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

56 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

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

Advertisements