title: PHP: File extension to MIME type?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1147931/how-do-i-determine-the-extensions-associated-with-a-mime-type-in-php">How do I determine the extension(s) associated with a MIME type in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm aware of how to get the MIME type of a given <em>file</em>, but is there a way to do it given only an <em>extension</em>?</p>
  
  <p>Example input:</p>
  
  <pre><code>jpg
  </code></pre>
  
  <p>Example output:</p>
  
  <pre><code>image/jpeg
  </code></pre>