Create links from plain text in PHP
<p>I have a string with some word separated by (,) like this <br></p>

<p>word1, word2,word3,word5, word5</p>

<p>I need a php function which take this string as a argument and output all of them as a link separated by (,) like this <br></p>

<pre><code>&lt;a href="?s=word1"&gt;word1&lt;/a&gt;,&lt;a href="?s=word2"&gt;word2&lt;/a&gt;, &lt;a href="?s=word3"&gt;word3&lt;/a&gt;,&lt;a href="?s=word4"&gt;word4&lt;/a&gt;,&lt;a href="?s=word5"&gt;word5&lt;/a&gt;
</code></pre>

<p>Please someone help me to do that ...</p>
