http://www.sina.com替换成<a href=http://www.sina.com>http://www.sina.com</a>吗?
应该很容易做到啊。
$txt = preg_replace( "#http://(\S+?)#i" , "<a href=http://\\1 target=_blank>\\1</a>", $txt );
应该很容易做到啊。
$txt = preg_replace( "#http://(\S+?)#i" , "<a href=http://\\1 target=_blank>\\1</a>", $txt );
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货