调试警告:F:\PHP\xampp\htdocs\webmaster\function\aleax.func.php 行 17 - preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier 't'找半天不知道哪错了,就报这个错误!
下面是全部代码function getAlexaNum($url)
{
$array = array(
"alexaNum" => array(
          "url" => "http://www.123cha.com/alexa/$url",          
          "pattern" =>'/<td>�ۺ�����:</td><td><strong>(.*?)</strong></td>/'
        )
);

return patternUrl($array['alexaNum']['url'], $array['alexaNum']['pattern']);
}function patternUrl($url, $pattern)
{
   $html = file_get_contents($url);
   preg_match($pattern, $html, $matches);
   return $matches[1];
}
echo getAlexaNum('jx163.com');输出$html,$url都没问题
到了 preg_matches的时候就报错, 正则匹配测试了 也没问题
请高手帮忙看看 指点小弟