What is MIME?



What is MIME?..

Answer / 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

More PHP Interview Questions

What is api example?

0 Answers  


Can we use php variable in javascript?

0 Answers  


List types of array are available in php?

0 Answers  


Which function is used to strip whitespace?

0 Answers  


What is trait in php?

0 Answers  






How does php serialize work?

0 Answers  


Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?

0 Answers   TCS,


Can you explain, when to use if-else if-else over switch statements?

0 Answers  


What is api used for?

0 Answers  


Is PHP an open source software?

0 Answers  


Write down the code for save an uploaded file in php.

0 Answers  


Tell me how to retrieve a cookie value?

0 Answers  


Categories