fork download
  1. <?php
  2.  
  3. $html = <<<DATA
  4. <tr><td rowspan=2>07/07/2016 14:55</td><td>AC MENDES - Mendes/RJ</td><td><font color="000000">Postado depois do horário limite da agência</font></td></tr>;
  5. DATA;
  6. $dom = new DOMDocument('1.0', 'UTF-8');
  7. $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
  8. $xpath = new DOMXPath($dom);
  9. $tds = $xpath->query('//td');
  10. $res = array();
  11. foreach($tds as $td) {
  12. array_push($res, $td->nodeValue);
  13. }
  14. print_r($res);
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 07/07/2016 14:55
    [1] => AC MENDES - Mendes/RJ
    [2] => Postado depois do horário limite da agência
)