Make string that starts with http:// clickable
<p>Looking to make a string that starts with either http:// or www clickable.</p>

<pre><code>str_replace("http://", "$string", "&lt;a href='$string'&gt;");
str_replace("www", "$string", "&lt;a href='$string'&gt;");
</code></pre>

<p>shouldnt it be something like that?</p>
