function drawWord($word, $color) { foreach ($word as &$letter) { ledBoard($letter, $color); } }
<body> <div> <?php echo '<div class="my_class">'; echo '<div class="inside">'; ledBoard('I', 'random'); ledBoard('T', 'random'); ledBoard('S', 'random'); echo '</div>'; echo '</div>'; echo '<div class="my_class" class="inside">'; echo '<div class="inside">'; ledBoard('ITS', 'rainbow'); echo '</div>'; echo '</div>'; echo '<div class="my_class">'; echo '<div class="inside">'; ledBoard('ITS', 'blue'); echo '</div>'; echo '</div>'; ?> </div> <footer id="footer"> <hr /> <p> the information included on this page may not be correct, it was created in CST336 © Joshua Smith 2015</p> <img class="image-with border" src="../../img/csumb-logo.png" alt="csumb logo" /> </footer> </body> </html>