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