\n"; foreach ($table as $row) { print ""; foreach ($row as $cell) { if (!isset($cell)) {$cell = 'n/a'; } print " $cell "; } print "\n"; } print "\n"; } ?>