--TEST-- 5.phpt: 3 row 3 column, setColAttributes / updateColAttributes --FILE-- $value) { $table->addRow($value, 'bgcolor = "yellow" align = "right"'); } // This overwrites attrs thus removing align="right" $table->setColAttributes(0, 'bgcolor = "purple"'); // This updates attrs thus keeping aligh="right" but change bgcolor $table->updateColAttributes(2, 'bgcolor = "blue"'); // output echo $table->toHTML(); ?> --EXPECT--
Foo | Bar | Test |
Foo | Bar | Test |
Foo | Bar | Test |