Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

what should write for getting extension of image in php

 $image_name = $_FILES['image']['name'];
        $ext = explode('.',$image_name);
Comment

PREVIOUS NEXT
Code Example
Php :: laravel jobs tutorial 
Php :: laravel collection unique 
Php :: upgrade php 5.6 to 7 centos 7 
Php :: php date format dd-mm-yyyy 
Php :: how to wp create post type in wordpress 
Php :: WP Migrate Lite 
Php :: php abstract class static method 
Php :: get action name in yii2 
Php :: how to refresh migration in laravel without losing data 
Php :: bootstap 5 add scrollbar 
Php :: phpstorm deployment 
Php :: Append a text string to WooCommerce product title loop 
Php :: http://www.finalclap.com/faq/81-php-afficher-date-heure-francais 
Java :: java create window 
Java :: android glide dependency 
Java :: make javafx open full screen 
Java :: string to double java 
Java :: phone call using intent in Android 
Java :: nanotime to milliseconds java 
Java :: javafx tableview remove clear all data 
Java :: how to get an array as input in java 
Java :: android studio centering textview in relativelayout 
Java :: java set textview color 
Java :: bukkit scheduler 
Java :: javafx action event enter key 
Java :: bukkit runnable repeating scheduler 
Java :: java for map 
Java :: java how to get deltaTime 
Java :: get value google sheet with app script 
Java :: java method to capitalize first letter 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =