(file_extension($filename

This function is used to back the file extension. 

Parameter: 

 

-  filename$ (mandatory) : the file name including its extension.

Example:

PHP :

 

Was this answer helpful? 19 Users Found This Useful (19 Votes)