Je dois extraire ce code HTML particulier en utilisant PHP. Depuis que je n'ai pas d'ID de classe unique ou j'ai essayé d'utiliser son attrib bgcolor mais sans succès ...Comment sélectionner un <td> par son attribut bgcolor en utilisant PHP simple html dom parser
<td bgcolor="#F5EC97" width="154" valign="top" align="left" height="55">
<font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b><font color="#CC6633">CITY</font></b><br>
<b>xyz</b><br>
xyz<br>
Tel. 555/22327<br>
</td>
c'est le code que j'ai essayé:
$res = $html->find('td[bgcolor=#F5EC97]');
Toute suggestion?
* (liés) * [meilleures méthodes pour analyser HTML] (http://stackoverflow.com/questions/3577641/best-methods-to-parse-html/3577662#3577662) – Gordon