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