Created
January 25, 2014 10:46
-
-
Save jgdoncel/b1ad1781b683a2abda6e to your computer and use it in GitHub Desktop.
Obtener la extensión de un nombre de fichero
From http://stackoverflow.com/questions/10368217/how-to-get-file-extension-in-php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = $_FILES['image']['name']; | |
$ext = pathinfo($path, PATHINFO_EXTENSION); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment