<?php $url = 'http://something.example.com/blah/filename.jpg'; var_dump( array_slice(explode('.', $url), -1) );
You have javascript disabled. You will not be able to edit any code.