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 :: disable wordpress admin bar 
Php :: mac use php@7.4 
Php :: laravel/framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 - your php version (8.1.6) does not satisfy that req 
Php :: close mysql connection in php 
Php :: php average from array 
Php :: date php 
Php :: wordpress disallow_file_edit 
Php :: mysql replace a character in a string 
Php :: php check if url exists 
Php :: get first key of array php 
Php :: laravel Route::group definition 
Php :: php array in cookie 
Php :: get_user_meta 
Php :: laravel publish email template 
Php :: beaver builder shortcode post title 
Php :: get stock product woocommerce by id 
Php :: php curl delete request 
Php :: php get only numbers from string 
Php :: wp revisions 0 
Php :: get current date laravel 
Php :: php max_execution_time 
Php :: string to slug php 
Php :: laravel withtrashed 
Php :: check table exists in db laravel 
Php :: switch case php 
Php :: form validation nullable laravel 
Php :: php strtotime 1 day ago from 
Php :: geoip php sample 
Php :: run laravel localhost network 
Php :: laravel model insert 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =