We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use Mimey\MimeTypes; $mimes = new MimeTypes(); $extension = $mimes->getExtension('audio/mp3'); echo $extension;
mp3
null
The text was updated successfully, but these errors were encountered:
Hi @renjithspace, thanks for your reply.
Do you refer the mime.types doc?
The audio/mpeg includes following extensions:
audio/mpeg
# audio/mpa-robust audio/mpeg mpga mp2 mp2a mp3 m2a m3a
That is, you have to use following code snippets to accomplish expected behavior:
use Mimey\MimeTypes; $mimes = new MimeTypes(); $mimes->getExtension('audio/mpeg'); // "mp3"
Sorry, something went wrong.
If you want to get all extensions for audio/mpeg, using the following method:
$mimes->getAllExtensions('audio/mpeg');
The output array is as follows:
[ "mp3", "mpga", "mp2", "mp2a", "m2a", "m3a", ]
@ralouphie, do you have any idea about this :)?
No branches or pull requests
Code
Expected
Output
The text was updated successfully, but these errors were encountered: