Source Code:
(back to article)
<?php $fileName = 'banner.jpg'; $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $fileName); echo $ext; ?>
Result:
Report an issue