Skip to content

Instantly share code, notes, and snippets.

@stajnert
Created August 28, 2012 10:14
Show Gist options
  • Save stajnert/3496899 to your computer and use it in GitHub Desktop.
Save stajnert/3496899 to your computer and use it in GitHub Desktop.
Get file extension
function getFileExtension($file_name)
{
return substr(strrchr($file_name, '.'), 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment