Source Code:
(back to article)
<?php $fileName = 'banner.jpg'; $ext = substr(strrchr($fileName, '.'), 1); echo $ext; ?>
Result:
Report an issue