Profile
Achievement
Oldarney's Recent SnippetsTagged php
- All /
« Prev 1 Next »
I whipped this up after finding that my worst fears were true, pathinfo is slow. Top that with in_array and you've got your self some heavy code. Nothing like regex to speed things up.
This little code checks the extension of a path to see if it i...
0
681
posted 14 years ago by Oldarney