I have a string with some word separated by (,) like this
word1, word2,word3,word5, word5
I need a php function which take this string as a argument and output all of them as a link separated by (,) like this
<a href="?s=word1">word1</a>,<a href="?s=word2">word2</a>, <a href="?s=word3">word3</a>,<a href="?s=word4">word4</a>,<a href="?s=word5">word5</a>
Please someone help me to do that …
Something like this?
(Untested)