PHP remove certain group of characters from string
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2183486/php-get-file-name-without-file-extension">PHP Get File Name Without File Extension</a>  </p>
</blockquote>



<p>Using php, how would I remove a certain set of characters from a string. For example I want to go from:</p>

<pre><code>http://www.domain.com/folder/image.gif
</code></pre>

<p>to</p>

<pre><code>image
</code></pre>

<p>I want to remove everything except the name of the image.</p>
