Monday, April 30, 2012

php get file extention

I wish to get an extension of an image I am uploading but I just get an array back. Is there a way to just get the extension itself



     $userfile_name = $_FILES['image']['name'];
$userfile_extn = explode(".", strtolower($_FILES['image']['name']));




No comments:

Post a Comment