$extension = substr( $string, rindex( $string, '.' ) + 1 );