Replacing urls with a href link in Php
Replacing urls with a href link
This code is used to replace any urls with links
E.g
“http://google.com is a good site ” will be “
http://google.com
is a good site
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text);
This entry was posted on Friday, October 9th, 2009 at 2:04 am and is filed under Php. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.