Tagged: file extension in PHP

get file extension in php

How to get file extension in PHP

Getting an extension of a file from PHP string to validate a file for upload is an important task. For example, if you have a file upload which allows you to upload only images then you need to validate the...