"; for ($tr =1; $tr <= $rows; $tr ++) { echo ""; if(($tr == '1')){ $b =''; $end_b =''; } for($td =1;$td <=$cols; $td++) { if(($tr != '1') && ($td == '1')){ $b =''; $end_b =''; } echo "" . $b .$tr * $td. $end_b ."\n"; if(($tr != '1') && ($td == '1')){ $b =''; $end_b =''; } } $b =''; $end_b =''; echo "\n"; } echo ""; ?>