Let's say I have the following HTML table:
<table>
<tbody>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
<th>Column 5</th>
</tr>
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
<td>Column 4</td>
<td>Column 5</td>
</tr>
</tbody>
</table>
How would I use the simple HTML DOM parser to return the table without columns 4 and 5? the first three columns of the table? I've started with this to get each row:
foreach ($html->find('tr') as $row) {
}
would I run another for loop to iterate through the cells?