Answer Posted / k.subbiah
Definition:
string mime_content_type ( string $filename )
Returns the content type in MIME format, like text/plain or application/octet-stream.
example:
<?php
echo mime_content_type('php.gif') . "\n";
echo mime_content_type('test.php');
?>
output:
image/gif
text/plain
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Where is session value stored php?
How can I embed a java program in php file and what changes have to be done in php.ini file?
What is the use of "ksort" in php?
Explain the changes in php versions?
What is the difference between overloading and overriding in php?
How to convert a character to an ascii value?
How do I install php and apache on windows 10?
Tell me what does $_env means?
What is php glob?
Tell me what kind of things have you done on the social side?
Is php an array?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
Which operator is used to combine string values in php?
What does namespace mean in php?
Why is overriding runtime?