echo "<table cellspacing=\"0\">";
    for ($y = 0; $y < 5; $y++) {
        echo "<tr>";
        for ($i = 0; $i < strlen($what_in_it); $i++) {
            for ($x = 0; $x < 5; $x++) {
                if ($letter[$what_in_it[$i]][$y][$x] == 1) {
                    $colour = "#000000";
                } else {
                    $colour = "#ffffff";
                }
                echo "<td style=\"background-color:{$colour}\">";
                echo "</td>";
            }
            echo "<td style=\"background-color:#ffffff\"></td>";
        }
        echo "</tr>";
    }
    echo "<tr><td></td></tr>";
    echo "</table>";
}
for ($i = 99; $i > 0; $i--) {
    $i == 1 ? $s = "" : ($s = "s");
    $i == 1 ? $no = "no more" : ($no = $i - 1);
    one_line("{$i} bottle{$s} of beer on the wall, {$i} bottle{$s} of beer.");
    one_line("take one down and pass it around, {$no} bottles of beer on the wall.");
    one_line(" ");
}
one_line("no more bottles of beer on the wall, no more bottles of beer.");
one_line("go to the store and buy some more, 99 bottles of beer on the wall.");
?>
?>
Example #2
0
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
?>
<HTML>
  <HEAD>
    <META charset="utf-8" />
        <link rel="stylesheet" href="font-awesome.min.css" />
        <link rel="stylesheet" href="style.css" />
        <link rel="stylesheet" type="text/css" href="class.css" />
    <TITLE>Design+</TITLE>
  </HEAD>
	<body>
  <div id="board">
	<?php 
function one_line()
{
    for ($i = 0; $i < 150; $i++) {
        echo '<div id="x' . $i . '" style="float: left; border: 1px solid rgba(255,255,255,.1); background-color: #34495e; width:10px; height:10px"></div>';
    }
}
for ($i = 0; $i < 100; $i++) {
    echo '<div id="y' . $i . '"style="width:1800px;">';
    one_line();
    echo '</div>';
}
?>
  </div>
	</body>
</HTML>