You are building a web application that needs to process user-uploaded images. Which predefined PHP function can be used to get the width and height of an image?
- getimagesize()
- imagecreatefromjpeg()
- imagecopy()
- imagesetpixel()
The getimagesize() function in PHP is used to retrieve the width and height of an image, making it suitable for processing user-uploaded images.
Loading...
Related Quiz
- Can you provide an example of a superglobal in PHP?
- What is the key difference between echo and print in PHP?
- The ______ data type in PHP is used to store a number with a decimal point.
- Comments in PHP code are ignored by the ______.
- Imagine you are creating a login system for a web application. To ensure the security of user credentials, which of the following methods would be the best practice?