private function removeExtension($filename)
    {
        $pos = mb_strrpos($filename, '.');
        if ($pos === false) {
            return $filename;
        }

        return mb_substr($filename, 0, $pos);
    }
private function removeExtension($filename)
    {
        $pos = mb_strrpos($filename, '.');
        if ($pos === false) {
            return $filename;
        }

        return mb_substr($filename, 0, $pos);
    }
private function removeExtension ( $ filename ) { $ pos = mb_strrpos ( $ filename , '.' ) ; if ( $ pos === false ) { return $ filename ; } return mb_substr ( $ filename , 0 , $ pos ) ; }
Returns filename, with extension stripped
@param string $filename
@return string
Returns filename with extension stripped