/ Published in: PHP
This code allows to pass filename in the $file_name variable and function will return file extension only.
URL: http://www.apphp.com/index.php?snippet=php-get-file-extension
URL: http://www.apphp.com/index.php?snippet=php-get-file-extension