--TEST-- 6.phpt: 6 row 3 column, setColAttributes / updateColAttributes (switching colors on each row) --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, array('bgcolor = "blue"', 'bgcolor="green"', 'bgcolor="red"')); // output echo $table->toHTML(); ?> --EXPECT--
Foo | Bar | Test |
Foo | Bar | Test |
Foo | Bar | Test |
Foo | Bar | Test |
Foo | Bar | Test |
Foo | Bar | Test |