Hi,
I want to replace the keywords in a search result, I use the following code:
<?
$keyword = "key";
$result = "key generation";
echo preg_replace ($keyword, "<font color = red>$keyword</font>", $result);
?>
It doesn't work, display nothing on the screen.
Could anybody help me,plz?