i am trying to build a function to change a word into a hyper link. i used this function
function myseo($t){
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$a=array('kid','children');
$uu=count($a);
for ($i = 1; $i <= $uu; $i++) {
$theseotext= str_replace($a[$i], '<a href="'.$url[$i].'">'.$a[$i].'</a>', $t);
}
return $theseotext;
}
but it doesnt work with me.
regards
Piny
I think it got scared, because it works with me now. 😉
Demo