Код (Text): $html = " <td class="s style8" colspan="5">клиент 1 </td> <td class="s style7" colspan="5">клиент 2 </td> и так далее"; Как вытащить только значение со стилем style8 ? Спасибо
Код (Text): <?php $html = ' <td class="s style8" colspan="5">клиент 1 </td> <td class="s style7" colspan="5">клиент 2 </td> и так далее'; preg_match_all("/<td.*?class=.*?style8.*?>(.*?)<\/td>/siu", $html, $matches); var_dump($matches);