Php-Get image name and extension Posted on May 16, 2017 by Chandan Sharma in Article, CodeIgniter, Image, PHP<?php $image = "glass.jpg"; //Getting image name $img_name = pathinfo($image, PATHINFO_FILENAME); //Getting image extension $img_ext = pathinfo($image, PATHINFO_EXTENSION); ?>Share this:TwitterFacebook Published by Chandan Sharma View all posts by Chandan Sharma