how to resplace a word with hyperlink in a string
<p>i am trying to build a function to change a word into a hyper link. i used this function</p>

<pre><code>function myseo($t){
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$a=array('kid','children');
$uu=count($a);
for ($i = 1; $i &lt;= $uu; $i++) {    
$theseotext= str_replace($a[$i], '&lt;a href="'.$url[$i].'"&gt;'.$a[$i].'&lt;/a&gt;', $t);  
}
return $theseotext;
}
</code></pre>

<p>but it doesnt work with me.</p>

<p>regards
Piny</p>
