Created
March 23, 2012 10:56
-
-
Save vrushank-snippets/2169590 to your computer and use it in GitHub Desktop.
PHP : Transform URL to hyperlinks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = "Jean-Baptiste Jung (http://www.webdevcat.com)"; | |
$url = preg_replace("#http://([A-z0-9./-]+)#", '$0', $url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment