How to identify the file extension of an uploaded file PHP

$ext = strtolower(substr(strrchr($file[’name’], ‘.’), 1));

Comments are closed.