Converting URLs into Hyperlinks


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.