Possible Duplicate:
How to parse and process HTML/XML with PHP?
how to scrape this with Simple HTML DOM
I have a table text like this:
$html='<table class="table1"><caption>Report</caption><tbody><tr>
<th>#</th>
<th>Date</th>
<th>tablehead</th>
<th>Price</th>
<th>Quantity</th>
<th>Total Amount</th>
</tr><tr class="even"><td>10</td>
<td>2013-01-19</td>
<td>somevalue</td>
<td>500</td>
<td>17</td>
<td>8500</td>
</tr><tr>
<th colspan="4"> </th>
<th>402</th>
<th>196700</th>
</tr> </tbody></table>';
I want to know how can I get the colspan value(when exists)? I am trying to use simple html dom but failed to get it. Any help will be appreciated.