public function getExtension($mimetype)
	{
		$key = array_search($mimetype, $this->mimeTypes);

		if (!$key)
		{
			$key = '';
		}

		return $key;
	}
public function getExtension($mimetype)
	{
		$key = array_search($mimetype, $this->mimeTypes);

		if (!$key)
		{
			$key = '';
		}

		return $key;
	}
public function getExtension ( $ mimetype ) { $ key = array_search ( $ mimetype , $ this -> mimeTypes ) ; if ( ! $ key ) { $ key = '' ; } return $ key ; }
Retrieve the corresponding file extension for a given MIME type, if one exists

@param   string  $mimetype
@return  string  A file extension associated with the mimetype
Retrieve the corresponding file extension for a given MIME type if one exists