advanced code snippet search
hyperwhat on 07/30/07
regexp files
08/09/07 06:21pm07/30/07 06:04am07/30/07 06:04am
3 people have marked this snippet as a favorite
hudgeAbefackz
preg_replace("/.*?\./", '', 'photo.jpg');
Report this snippet Tweet
OR:
$fileInfo = pathinfo($file); echo $fileInfo['extension'];
Comment:
You need to login to post a comment.
OR:
$fileInfo = pathinfo($file); echo $fileInfo['extension'];