public static function trim_extension_off($name)
    {
        if (strrpos($name, '.') !== false) {
            return substr($name, 0, strrpos($name, '.'));
        }
        
        return $name;
    }
public static function trim_extension_off($name)
    {
        if (strrpos($name, '.') !== false) {
            return substr($name, 0, strrpos($name, '.'));
        }
        
        return $name;
    }
public static function trim_extension_off ( $ name ) { if ( strrpos ( $ name , '.' ) !== false ) { return substr ( $ name , 0 , strrpos ( $ name , '.' ) ) ; } return $ name ; }
Helper function to strip the extension off and return the name without
the extension.

@param string

@return string
Helper function to strip the extension off and return the name without the extension .