submitted by neemzy on 01/10/2013
Think you can beat it under PHP 5.4 ?
$extension = strtolower(array_pop(explode('.', $filename)));