Answers for "how to take extention image in the php"

PHP
2

get image extension in php

//get image extension of uploaded file in php
$imagetype = $_FILES['image']['name'];
$ext = pathinfo($imagetype, PATHINFO_EXTENSION);// get file extension
Posted by: Guest on October-19-2020
1

what should write for getting extension of image in php

$image_name = $_FILES['image']['name'];
        $ext = explode('.',$image_name);
Posted by: Guest on September-08-2021

Code answers related to "how to take extention image in the php"

Browse Popular Code Answers by Language