But this is still getting kind of lengthy. Couldn't we save some more
steps? How about trying this:
Wow! That's a little more complicated. Let's break it down:
Lastly, we close out the row.
What this means is we can pass a single string to TROut that will
contain all the necessary information to print out the entire row as
long as the string is in the format
celldata[:colspan]|celldata[:colspan]|......celldata[:colspan].
So, instead of all the work we did before, the headers and body of the
table could be called like this:
<TABLE>
<?php
$Theader->TROut("Name:2|Address:3");
$Theader->TROut("First|Last|City|State/Province|Country");
$Tbody->TROut("Rod|Kreisler|Cortlandt|New York|USA");
?>
</TABLE>
Wow. That's a lot easier. But what if the data is in variables? Simply
join the array:
<?php
$message=join($arry,"|");
$Tbody->TROut($message);
?>