Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 23422 программиста и 1603 робота. Сейчас ищут 1798 программистов ...

Getting infos about a MIME type

Вернуться к: MIME_Type

Getting infos about a MIME type

Getting infos about a MIME type – How to get more information about a MIME type

Using MIME_Type you can get different data about a MIME type. All methods mentioned here can be called statically.

  • getMedia() returns the main part (media part, portion before the slash) of a MIME type. It would return image for image/png.

  • getSubType() returns the subtype of the given type. For image/png, it returns png.

  • isExperimental() checks if a given MIME type is experimental. It returns true or false (e.g. text/x-vcard).

  • isVendor() determines if the given type is a vendor specific MIME type (e.g. as in application/vnd.mozilla.xul+xml).

  • isWildcard() tells you if the passed type is a wildcard type (is either */* or something/*).



Вернуться к: MIME_Type

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware