Output the table as text

echo $table;

Cell ordering

If you choose not to use cell ID’s, then you have to create data cells in the same order as the header cells.

$row = $table->head()->row(); $row->th()->text( 'This is the first column' ); $row->th()->text( 'This is the second column' ); $row = $table->body()->row(); $row->th()->text( 'This is the first data' ); $row->th()->text( 'This is the second data' );