$url = "开源中国社区 (http://www.oschina.net)";$url = preg_replace("#http://([A-z0-9./-]+)#", '$0', $url);
来源: https://www.php1.cn/detail/php-eca3125eaf.html