\n" ); for ( $row = 0; $row < $matrix; $row++ ) { print( "\t\n" ); for( $col = 0; $col < $matrix; $col++ ){ if( 0 == ( $row + $col ) % 2 ){ print( "\t\t
\n" ); }else{ print( "\t\t
\n" ); } } print( "\t\n" ); } print( "\n" ); ?>