Header1Header2Header3Header4Header5Header6
Cell (1,1)Cell (1,2)Cell (1,3)Cell (1,4)Cell (1,5)Cell (1,6)
Cell (2,1)Cell (2,2)Cell (2,3)Cell (2,4)Cell (2,5)Cell (2,6)
Cell (3,1)Cell (3,2)Cell (3,3)Cell (3,4)Cell (3,5)Cell (3,6)
Cell (4,1)Cell (4,2)Cell (4,3)Cell (4,4)Cell (4,5)Cell (4,6)
Cell (5,1)Cell (5,2)Cell (5,3)Cell (5,4)Cell (5,5)Cell (5,6)




END OF OUTPUT




Source Code of 6.php


<html>
    <head>
        <style>
            #myTable {
                border-collapse: collapse;
            }
            #myTable th {
                font-size: 1.1em;
                text-align: center;
                padding: 10px 10px 10px 10px;
                background-color: #A7C942;
            }
            #myTable td {
                font-size: 1em;
                border: 1px solid #98bf21;
                padding: 10px 10px 10px 10px;
            }
        </style>
    </head>
    <body>
    <table id="myTable">
<?php
// a loop to generate my 6 header cells
for ($x 0$x 6$x++) {                        
    echo 
"<th>Header".($x+1)."</th>";
}
echo 
"\n";

for (
$x 0$x 5$x++) {                        // a loop to generate 5 rows
    
echo "<tr>";

    for (
$y=0$y ;$y++) {                    // a loop to generate 6 cells
        
echo "<td>"."Cell (".($x+1).",".($y+1).")</td>";    //EACH VALUE is "Cell (x,y)"
    
}

    echo 
"</tr>\n";
}
echo 
"</table>\n</body>\n</html>";
?>




<?php //WILL DISPLAY CODE OF THIS FILE ON THE WEBPAGE//
######################################################################
echo "<br/><br/><hr><hr>";
echo 
"<h2 style='text-align:center'>END OF OUTPUT</h2>\n";
echo 
"<hr><hr>";
echo 
"<h2><br>Source Code of ".basename((string)__FILE__) . "</h2><hr>";
show_source(__FILE__);
#######################################################################
?>