SymfonyComponentHttpFoundationFileMimeTypeMimeTypeExtensionGuesser

Provides a best-guess mapping of mime type to file extension.

Summary

No public properties found
No constants found
No protected methods found
N/A
No private methods found
No private properties found
N/A
File
vendorSymfonyComponentHttpFoundationFileMimeTypeMimeTypeExtensionGuesser.php
Package
Default
Class hierarchy
SymfonyComponentHttpFoundationFileMimeTypeMimeTypeExtensionGuesser
Implements
SymfonyComponentHttpFoundationFileMimeTypeExtensionGuesserInterface

Tags

None found

Properties

$defaultExtensions

$defaultExtensions : array

A map of mime types and their default extensions.

This list has been placed under the public domain by the Apache HTTPD project.

Type

array

See also

Tags

None found

Methods

guess()

guess(string  $mimeType) : string

Makes a best guess for a file extension, given a mime type

Parameters

string $mimeType

The mime type

Returns

string —

The guessed extension or NULL, if none could be guessed

Tags

None found