ExtensionGuesserInterface
interface ExtensionGuesserInterface
Guesses the file extension corresponding to a given mime type.
Methods
string | guess(string $mimeType) Makes a best guess for a file extension, given a mime type. |
Details
string guess(string $mimeType)
Makes a best guess for a file extension, given a mime type.
Parameters
string | $mimeType | The mime type |
Return Value
string | The guessed extension or NULL, if none could be guessed |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpFoundation/File/MimeType/ExtensionGuesserInterface.html