Sudhir Bastakoti's Blog for PHP, JQuery, Ajax
05 July, 2009
File extension in PHP
For getting file extension, simply this can be done:
$fileName = "SampleOne.jpg";
$fileExtension = array_pop(explode(".", $fileName));
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment