Removing text after string
<p>Here is my link</p>

<pre><code>&lt;img src='http://www.mysite.org/images/post_images/2400.jpg' /&gt;&lt;div&gt;© Ham Sammich&lt;/div&gt;&lt;/div&gt;
</code></pre>

<p>I want to remove the text after the <code>/&gt;</code> thus making the link..</p>

<pre><code>&lt;img src='http://www.mysite.org/images/post_images/2400.jpg' /&gt;
</code></pre>

<p>I've tried using the strstr function on the end, but my vps does not have the option of going to 5.3 thus making that not a go.</p>

<p>Here is my code, which does not work because of 5.3 not being on there..</p>

<pre><code>$imgTwo = strstr($img, "&gt;", 1);
$img = $imgTwo . "&gt;";
</code></pre>

<p>Whats a good substitute for getting this done the way I want?</p>
