--TEST-- 7.phpt: 3 row 3 column, getCellAttributes / getRowAttributes --FILE-- $value) { $table->addRow($value, 'bgcolor = "yellow" align = "right"'); } // This overwrites attrs thus removing align="right" $table->setColAttributes(0, 'bgcolor = "purple"'); // This updates attrs, change bgcolor, but in tr $table->updateRowAttributes(2, 'bgcolor = "blue"', true); // output // row 2, cell 2 var_dump($table->getCellAttributes(2, 2)); var_dump($table->getRowAttributes(2)); ?> --EXPECT-- array(2) { ["bgcolor"]=> string(6) "yellow" ["align"]=> string(5) "right" } array(1) { ["bgcolor"]=> string(4) "blue" }