/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$filename = 'image.jpg'; echo $file['extension']; // output: jpg
URL: http://php.net/manual/en/function.pathinfo.php