Skip to content

Instantly share code, notes, and snippets.

@bslima
Created August 7, 2013 23:21
Show Gist options
  • Save bslima/6179897 to your computer and use it in GitHub Desktop.
Save bslima/6179897 to your computer and use it in GitHub Desktop.
how to get the filename extesion
//nao precisa ser um arquivo no sistema
$ext = pathinfo($filename, PATHINFO_EXTENSION);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment