mymnBleamiWam
New Member
I got a table as DOMDocument which looks like this:\[code\] name | user | comment ----------------------------- Test | user1 | Line 1 Abc | user2 | Line 1 | | Line 2 Test2 | user3 | Line 1 Test3 | user3 | Line 1 | | Line 2 | | Line 3\[/code\]as you can see, sometimes the comment Wraps over multiple tablerows. (Apparently when the comment is a long one)
When those wraps occur, all fields except for the comment one are empty.How can I merge those wrapped comments together and output them?I am currently outputting them like this:\[code\]foreach ($xml->getElementsByTagName('table')->item(1)->getElementsByTagName('tr') as $row) { echo "<tr>"; foreach ($row->getElementsByTagName('td') as $column) { echo "<td>" . $column->textContent . "</td>"; } echo "</tr>"; }}\[/code\]
When those wraps occur, all fields except for the comment one are empty.How can I merge those wrapped comments together and output them?I am currently outputting them like this:\[code\]foreach ($xml->getElementsByTagName('table')->item(1)->getElementsByTagName('tr') as $row) { echo "<tr>"; foreach ($row->getElementsByTagName('td') as $column) { echo "<td>" . $column->textContent . "</td>"; } echo "</tr>"; }}\[/code\]