Text extract from html table
Posted: Wed Apr 09, 2008 9:11 pm
I need to extract the table contents from this html code into an array. I've been trying to use preg_match_all but without success and could use some clues. Thanks!
Code: Select all
<TR>
<TD colspan="3" height=9 ALIGN="left"><FONT SIZE=2>   text1</TD></FONT>
<!--<TD colspan="4" height=9 ALIGN="center"><FONT SIZE=2>#Date#</TD></FONT>-->
<TD colspan="1" height=9 ALIGN="center"><FONT SIZE=2>Apr 10, 00:02</TD></FONT>
<TD colspan="1" height=9 ALIGN="center"><FONT SIZE=2>3.9° C.</TD></FONT>
<TD colspan="1" height=9 ALIGN="center"><FONT SIZE=2>5.6° C.</TD></FONT>
<TD colspan="2" height=9 ALIGN="center"><FONT SIZE=2>Moist</TD></FONT>
<TD colspan="1" height=9 ALIGN="center"><FONT SIZE=2>87%</TD></FONT>
<TD colspan="1" height=9 ALIGN="center"><FONT SIZE=2>0.8 km/h</TD></FONT>
<TD colspan="3" height=9 ALIGN="center"><FONT SIZE=2>North-westerly</TD></FONT>
<TD colspan="3" height=9 ALIGN="center"><FONT SIZE=2>No recent rainfall</TD></FONT>
</TR>