Source for file Table_example2.php
Documentation is available at Table_example2.php
* This example will output html websafe colors in a table
// $Id: Table_example2.php 297540 2010-04-05 19:58:39Z wiesemann $
require_once 'HTML/Table.php';
$table->setCaption ('256 colors table');
for ($R = 0; $R <= 255; $R += 51 ) {
for ($G = 0; $G <= 255; $G += 51 ) {
for($B = 0; $B <= 255; $B += 51 ) {
$table->setCellAttributes ($i, $j, 'bgcolor = "#'. sprintf('%02X%02X%02X', $R, $G, $B). '"');
Documentation generated on Mon, 11 Mar 2019 15:36:59 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|