复制代码 代码如下:
$pat = '/<img.*?alt="苹果/.jpg" //><//a>/';
$pat = iconv(‘UTF-8', ‘GB2312', $pat);
$ret = preg_match_all($pat, $contents, $matches);
复制代码 代码如下:
$pat = '/<img.*?alt="苹果/.jpg" //><//a>/';
$contenst = iconv(‘GB2312', ‘UTF-8', $contents);
$ret = preg_match_all($pat, $contents, $matches);
新闻热点
疑难解答