How does the php replace function work? Is this right? $keyword3 = $_REQUEST["keyword3"]; $strText= str_replace($keyword3,"<span class='' id='' style='color:blue; font-weight:bold;'>", "</span>", $strText); Print $strText; PHP: