There is a table in which for some fields colspan and rowspan . But I need PHP code to remove this union and suppose instead of colspan=2 make 2 cells and fill them with identical data that was in this field with the attribute colspan=2 .

  • If you read about domDocument, then you can cope with colspan very easily. With rowspan is a bit more complicated. Try, there will be problems with the code, please contact. And writing code for the authors of the question is not the best style - splash58

1 answer 1

This is not a PHP issue, but rather a DOM. As @ splash58 advises you, read about the table tags, and PHP is a means of output, not layout.