title: Get image type from base64 encoded src string
body: <h2>WHAT I REQUIRE</h2>
  <p>My image src looks like this</p>
  <pre><code>data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAA...
  </code></pre>
  <p>How can I extract the image type ie; <code>jpeg</code> from the above src given. I am using PHP and the image type can also be png/gif/jpg.</p>