Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #image #extension #php
ADD COMMENT
Topic
Name
3+5 =