Question : get image extension in php
Answered by : sakuragi
//get image extension of uploaded file in php
$imagetype = $_FILES['image']['name'];
$ext = pathinfo($imagetype, PATHINFO_EXTENSION);// get file extension
Source : | Last Update : Mon, 26 Oct 20
Question : what should write for getting extension of image in php
Answered by : kinjal-suryavanshi
$image_name = $_FILES['image']['name']; $ext = explode('.',$image_name);
Source : | Last Update : Wed, 15 Sep 21