Published in: PHP
|
|
|
Expand |
Embed | Plain Text
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $text);
Comments
Subscribe to comments
You need to login to post a comment.


With ereg_replace being unsupported by future versions of PHP, is there another way to do this as effectively?
preg_replace?