How do I use preg_replace to return part of a string?
<p>I am trying to return mime types from an array. I have these strings in an array:</p>

<pre><code>application/pdf
image/jpg
image/jpeg
</code></pre>

<p>What I want to end up with is:</p>

<pre><code>pdf
jpg
jpeg
</code></pre>
