Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (34 sloc) 0.52 kb
--TEST--
21.phpt: addCol with indexed rows (row 2, col 1; row 3, col 0)
--FILE--
<?php
// $Id$
require_once 'HTML/Table.php';
$table = new HTML_Table();
$data[0][3] = 'Test';
$data[1][2] = 'Test';
foreach($data as $key => $value) {
$table->addCol($value);
}
// output
echo $table->toHTML();
?>
--EXPECT--
<table>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>&nbsp;</td>
</tr>
</table>
Jump to Line
Something went wrong with that request. Please try again.