"; for($i=0;$i<$rows;$i++){ $str.=""; for($j=0;$j<$cols;$j++){ $str.=""; } $str.=""; } $str.="
".$arr[$i][$j]."
"; return $str; } ?>