need php replace function

Discussion in 'PHP' started by gilgalbiblewheel, Nov 7, 2007.

  1. #1
    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:

     
    gilgalbiblewheel, Nov 7, 2007 IP
  2. rahmat

    rahmat Active Member

    Messages:
    270
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    rahmat, Nov 7, 2007 IP