<?php
function myseo($t){
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$a = array('kid', 'children');
$uu = count($a);
$theseotext = $t;
for ($i = 0; $i < $uu; $i++) {
$theseotext = str_replace($a[$i], '<a href="'.$url.'">'.$a[$i].'</a>', $theseotext);
}
return $theseotext;
}
var_dump(myseo('Some testing kid and children text'));
?>