public static function getDefaultFileExtension($mime) {

		if(empty(self::$mimeToExtension)) {
			self::$mimeToExtension = array_flip(self::$extensionToMime);
		}

		return isset(self::$mimeToExtension[$mime]) ? self::$mimeToExtension[$mime] : '';

	}
public static function getDefaultFileExtension($mime) {

		if(empty(self::$mimeToExtension)) {
			self::$mimeToExtension = array_flip(self::$extensionToMime);
		}

		return isset(self::$mimeToExtension[$mime]) ? self::$mimeToExtension[$mime] : '';

	}
public static function getDefaultFileExtension ( $ mime ) { if ( empty ( self :: $ mimeToExtension ) ) { self :: $ mimeToExtension = array_flip ( self :: $ extensionToMime ) ; } return isset ( self :: $ mimeToExtension [ $ mime ] ) ? self :: $ mimeToExtension [ $ mime ] : '' ; }
returns a default extension by a given MIME type

since a single MIME type can be assigned to more than one
extension the one determined by the array structure is returned
returns an empty string if no match for the MIME type was found

@param string
@return string
returns a default extension by a given MIME type