public static function getExtention($mimeType)
    {
        $returnValue = (string) '';

        foreach(self::getMimeTypeList() as $key => $value){
        	if($value == trim($mimeType)){
        		$returnValue = $key;
        		break;
        	}
        }

        return (string) $returnValue;
    }
public static function getExtention($mimeType)
    {
        $returnValue = (string) '';

        foreach(self::getMimeTypeList() as $key => $value){
        	if($value == trim($mimeType)){
        		$returnValue = $key;
        		break;
        	}
        }

        return (string) $returnValue;
    }
public static function getExtention ( $ mimeType ) { $ returnValue = ( string ) '' ; foreach ( self :: getMimeTypeList ( ) as $ key => $ value ) { if ( $ value == trim ( $ mimeType ) ) { $ returnValue = $ key ; break ; } } return ( string ) $ returnValue ; }
Retrieve file extensions usually associated to a given mime-type.

@author Lionel Lecaque, <lionel@taotesting.com>
@param  string $mimeType A mime-type which is recognized by the platform.
@return string The extension usually associated to the mime-type. If it could not be retrieved, an empty string is returned.
Retrieve file extensions usually associated to a given mime - type .