GuzzleHttpPsr7mimetype_from_extension

Maps a file extensions to a mimetype.

Description

(string|null) GuzzleHttp\Psr7\mimetype_from_extension( $extension ); 

Returns (string|null)

Parameters (1)

0. $extension
String The file extension.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\mimetype_from_extension' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // string The file extension. 
  5. $extension = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Psr7\mimetype_from_extension($extension); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php