复制番号代码如下:
function showtext($text){
$search = array('|(http://[^ ]+)|', '|(https://[^ ]+)|', '|(www.[^ ]+)|');
$replace = array('
$1', '
$1 a>', '$1');
$text = preg_replace($search, $replace, $text);
$text を返す;
}
http://www.bkjia.com/PHPjc/324307.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/324307.html技術記事复制代码代码如下: function showtext($text){ $search = array('|(http://[^ ]+)|', '|(https://[^ ]+)|', '|( www.[^ ]+)|'); $replace = array('a href="$1" target="_blank"$1/a',...