Return to Snippet

Revision: 24536
at March 3, 2010 12:02 by sveggiani


Initial Code
function get_file_extension($file_name) {
    return substr(strrchr($file_name,'.'),1);
}

Initial URL
http://davidwalsh.name/php-function-get-file-extension-string

Initial Description

                                

Initial Title
get the file extension of a filename in a string

Initial Tags

                                

Initial Language
PHP