public static function removeExtension($filename)
    {
        if (false === strrpos($filename, '.')) {
            return $filename;
        }

        return substr($filename, 0, strrpos($filename, '.'));
    }
public static function removeExtension($filename)
    {
        if (false === strrpos($filename, '.')) {
            return $filename;
        }

        return substr($filename, 0, strrpos($filename, '.'));
    }
public static function removeExtension ( $ filename ) { if ( false === strrpos ( $ filename , '.' ) ) { return $ filename ; } return substr ( $ filename , 0 , strrpos ( $ filename , '.' ) ) ; }
Removes the extension file from its name
@param  string $filename
@return string
Removes the extension file from its name