Posted By

sveggiani on 06/19/10


Tagged

strings not-mine


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

BrianCoyDesign
jackkeller


Converting URLs into Hyperlinks


 / Published in: PHP
 

  1. $url = "W.J. Gilmore, LLC (http://www.wjgilmore.com)";
  2. $url = preg_replace("/http://([A-z0-9./-]+)/", "$0", $url);
  3.  
  4. // $url = "W.J. Gilmore, LLC (http://www.wjgilmore.com)"

Report this snippet  

You need to login to post a comment.