截取中间

$pattern = '/<spanclass="data">(.*?)<\/span>/';
preg_match_all($pattern, $str, $mathchs);

猜你喜欢

转载自www.cnblogs.com/xiaobiaomei/p/10593618.html