I am not sure that I fully understand your problem but I try to reply somehow;).
If you use $ft->parse_and_return you should expect a return value.
In the terms of the flex_table example you can use
1) //$ft->FastPrint('MAIN');
echo $ft->parse_and_return('MAIN');
......
just with
fillTable($headers, $cells, $caption, $rows, $cols);
OR
2) //$ft->FastPrint('MAIN');
return $ft->parse_and_return('MAIN');
.......
echo fillTable($headers, $cells, $caption, $rows, $cols); |