Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (30 sloc) 0.497 kB
--TEST--
20.phpt: addRow with indexed columns (row 0, col 3; row 1, col 2)
--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->addRow($value);
}
// output
echo $table->toHTML();
?>
--EXPECT--
<table>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>Test</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>Test</td>
<td>&nbsp;</td>
</tr>
</table>
Jump to Line
Something went wrong with that request. Please try again.