I want to get the file type (eg. image/gif) by URL using PHP.I had tried
exif_imagetype returns the image type. The response, 3, indicates it is IMAGETYPE_PNG, the correct response.