时间:2021-07-01 10:21:17 帮助过:20人阅读
preg_match_all('/class="(rest|count)">(\d+)',$s,$m);
$result = preg_match('/class="rest">([0-9]+)/', $html, $rest);if ($result) { var_dump($rest);}$result = preg_match('/class="count">([0-9]+)/', $html, $count);if ($result) { var_dump($count);}