$string = "連接http://www.phpx.com 網站";
//連線後需要有個空格或回車。
$string = eregi_replace("http://([^ ,rn]*)","\0",$string);
$string = eregi_replace("ftp://([^ ,rn]*)","\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://([^ ,rn]*),a href=\0 target=_blank\0/a,$string); $string =ere...