for($i=0; $i<$max_tr; $i++) { print ""; for($j=0; $j<$max_td; $j++) { print "position: $i,$j"; } print ""; }