got a way its curd but it does the job.
I added comments to show you how i did it even tho its pretty easy to under stand.
// var to replace stuff in to replace
$html = "<font color='#00ffff'>font font font</font>";
// function to replace them
function replacefont($html)
{
// replace the front and end the tags frist
str_replace ("<font", "[tagstart]", "$html");
str_replace ("</font>", "[tagend]", "$html");
// replace the word font
str_replace ("font", "pumpkin", "$html");
// put the tags back
str_replace ("[tagstart]", "<font", "$html");
str_replace ("[tagend]", "</font>", "$html");
// return the new var
return $html;
}
replacefont($html);
echo "$html";