PHP href help!

Discussion in 'PHP' started by irule272, Jul 21, 2009.

  1. #1
    Hello I'm confuse on where will I put "target=_blank" on this php code. I badly need this...



    I hope someone will fix it for me... Thanks!
     
    irule272, Jul 21, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\" target=\"_blank\">\\0</a>", $text);
     
    jestep, Jul 21, 2009 IP
    irule272 likes this.
  3. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Repped man!
     
    irule272, Jul 21, 2009 IP