Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php linkify text

$string = "Look on http://www.google.com";
$string = preg_replace(
              "~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~",
              "<a href=""></a>", 
              $string);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #linkify #text
ADD COMMENT
Topic
Name
1+9 =