$string = 连接http://www.phpx.com 站点;
//连接后需要有个空格或回车。
$string = eregi_replace(http://([^ ,\r\n]*),\\0,$string);
$string = eregi_replace(ftp://([^ ,\r\n]*),\\0,$string);
print $string;
这个可是非常有用的呀.
http://www.bkjia.com/phpjc/316408.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/316408.htmltecharticle$string = 连接http://www.phpx.com 站点; //连接后需要有个空格或回车。 $string =eregi_replace(http://([^ ,\r\n]*),a href=\\0 target=_blank\\0/a,$string); $string =ere...