功能不能正常工作,调用函数时的$ 1值丢失:问题里面的preg_replace
echo preg_replace('"\b(http://\S+)"', '<a href="$1">'.findTopDomain('$1').'</a>', $text);
做工精细,输出:stackoverflow.com
echo preg_replace('"\b(http://\S+)"', '<a href="$1">'.findTopDomain('http://stackoverflow.com/questions/ask').'</a>' , $text);
我需要发在preg_replace中函数的$ 1值。 我在做什么错?