PHP Coding Tips

Showing posts with label extension. Show all posts
Showing posts with label extension. Show all posts

Monday, August 27, 2012

PHP File extension - How to get file extension ?

You can get a file extension in PHP using function pathinfo(). Here is sample usage:$extension = pathinfo( $fileName , PATHINFO_EXTENSION );