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));
Newer Posts
Home
Subscribe to:
Posts (Atom)