/** * Is this a wildcard type? * * @param string $type MIME type to check * @return boolean true if $type is a wildcard, false otherwise * @static */ function isWildcard($type) { if ($type == '*/*' || MIME_Type::getSubtype($type) == '*') { return true; } return false; }