Function to Get mime type By PHP

    1100695 VIEW 3 0

The mime_content_type() function is an inbuilt function in PHP 4 >= 4.3.0, PHP 5, PHP 7  to Above which is used to get the MIME content-type of a file.

Syntax:

 mime_content_type($filename);

Parameters: This function accepts single parameter $filename which specifies the path of the file which MIME details to be find.

Return Value: This function returns the MIME content type or False on failure.



Referance
1. Php.net https://www.php.net/manual/en/function.mime-content-type.php


Related Topics
=> Function to Get mime type By PHP
=> Check if a string contains a specific word
=> Get the client IP address by PHP
=> Get the full URL By PHP