php get uploaded file extension
snippet in php

php get uploaded file extension

user4301

$ext = pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION);