I am building a table in a php script using foreach. eg:
echo "<tr> ";
echo "</tr> ";
so I don't know how many rows there will be until the foreach code runs.
I would like to add a column starting at the first row <td rowspan="??"> spanning all the rows created by the foreach code.
I suppose I could run the foreach twice, once to count the number of rows, a second time to build the table but is there a simpler way?