Web Development and Design Blog
12. Dec, 2007 0 Comments
<?php function getExt($filename){ return substr(strrchr($filename, '.'), 1); } $file = 'myphoto.jpg'; echo getExt($file); ?>
function getExt($filename){ return substr(strrchr($filename, '.'), 1); }
$file = 'myphoto.jpg'; echo '
‘; ?>
Notify me of followup comments via e-mail
No comments yet... Be the first to leave a reply!