Last active
October 21, 2017 13:46
-
-
Save Kloport/6cfbed0a34c124971186b3299e7390b7 to your computer and use it in GitHub Desktop.
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
// Ordered by execution speed | |
$ext = pathinfo($filename, PATHINFO_EXTENSION); | |
$ext = substr(strrchr($filename, '.'), 1); | |
$ext = substr($filename, strrpos($filename, '.') + 1); | |
$ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename); | |
$ext = end(explode('.', $filename)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment