Return to Snippet

Revision: 29665
at August 2, 2010 21:20 by r4b87


Initial Code
$extension=substr(strrchr($file,'.'),1);

Initial URL

                                

Initial Description
Given a string of a file name, return the extension

Initial Title
Get file extension from string

Initial Tags
file, extension

Initial Language
PHP