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