
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
Urmila Samariya has Published 135 Articles

Urmila Samariya
1K+ Views
imagecreatetruecolor( ) is an inbuilt function in PHP that is used to create a new true-color image. It returns a blank image of the given size.Syntaxresource imagecreatetruecolor($width, $height)Parametersimagecreatetruecolor() takes two paramters, $width and $height.$width − The $width parameter is used to set the image width.$height − The $height parameter is ... Read More

Urmila Samariya
3K+ Views
imagecrop() is an inbuilt function in PHP that is used to crop an image to the given rectangle. It crops the image from the given rectangle area and returns the output image.The given image is not modified.Syntaxresource imagecrop ($image, $rect)Parametersimagecrop() takes two parameters, $image and $rect.$image − It is the ... Read More

Urmila Samariya
1K+ Views
imagecropauto() is an inbuilt function in PHP that is used to crop an image automatically using one of the available modes.Syntaxresource imagecropauto(resource $image, int $mode, float $threshold, int $color)Parametersimagecropauto() takes four different parameters − $image, $mode, $threshold and $color.$image − Specifies the image resource to be cropped.$mode − It is ... Read More

Urmila Samariya
636 Views
imagedestroy() is an inbuilt PHP function that is used to destroy an image and free any memory associated with the image.Syntaxbool imagedestroy(resource $image)Parametersimagedestroy() takes only one parameter, $image. It holds the name of an image.Return Valuesimagedestroy() returns true on success and failure on false.Example 1 − Destroying an image after ... Read More

Urmila Samariya
1K+ Views
In PHP, imagecreatefromwebp() is an inbuilt PHP function that is used to create a new image from a WEBP file or URL. imagecreatefromwebp() returns an image identifier representing the image obtained from the given filename.imagecreatefromwebp() can be used whenever we want to edit the images after loading them from a ... Read More

Urmila Samariya
254 Views
In PHP, imagecreatefromwbmp() is an inbuilt function that is used to create a new image from a WBMP file or URL. imagecreatefromwbmp() returns an image identifier representing the image obtained from the given filename. We can use imagecreatefromwbmp() whenever we want to edit the images after loading them from a ... Read More

Urmila Samariya
2K+ Views
In PHP, imagecreatefrompng() is an inbuilt function that is used to create a new image from a PNG file or URL. imagecreatefrompng() returns an image identifier representing the image obtained from the given filename.Syntaxresource imagecreatefrompng(string $filename)Parametersimagecreatefrompng() takes only one parameter, $filename. This parameter holds the name of the image or ... Read More

Urmila Samariya
3K+ Views
imagecreatefromjpeg() is an inbuilt function in PHP that is used to create a new image from a JPEG file. It returns an image identifier representing the image obtained from the given filename.Syntaxresource imagecreatefromjpeg(string $filename)Parametersimagecreatefromjpeg() uses only one parameter, $filename, that holds the name of the image or path to the ... Read More

Urmila Samariya
735 Views
The mixed type in PHP 8 is a new built-in union type. Mixed type is equivalent to array|bool|callable|int|float. Mixing the type is not quite similar to omitting the type completely.That means, the programmer just forgot to write it.Sometimes the programmer prefers to omit some specific type to keep the compatibility ... Read More

Urmila Samariya
775 Views
In PHP 8, Constructor Property Promotion is added. It helps to reduce a lot of boilerplate code while constructing simple objects. This feature allows us to combine class fields, constructor definition, and variable assignments, all in one syntax, into the constructor parameter list.We can say that instead of specifying class ... Read More