Srting Replacement

Discussion in 'PHP' started by shafiulalam, Oct 18, 2008.

  1. #1
    Hi :),

    I am facing problem with string replacement

    $url=" click here to go http://hostname/resources/templates/upload/1222059729/#1
    or click here to go

    http://hostname/resources/templates/upload/1222059729/ ";


    plz note that i want something like this


    $url=" click here to go address1


    or click here to go

    address2";

    Could any one can give right solutions.

    Thanks
    :)
     
    shafiulalam, Oct 18, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Please give more details, this isn't enough to help you!
     
    EricBruggema, Oct 18, 2008 IP
  3. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    uh...

    $add1 = "address one here";
    $add2 = "Address two here";
    $url = "click <a href=\"".htmlspecialchars($add1)."\">here</a> to go to ".htmlspecialchars($add1)."

    or click <a href=\"".htmlspecialchars($add2)."\">here</a> to go to ".htmlspecialchars($add2);

    is that what you want?
     
    Kyosys, Oct 18, 2008 IP