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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *