Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $currentColor = 0;
- for ($rows = 0; $rows < 5; $rows++) {
- for ($cols = 0; $cols < 10; $cols++) {
- echo "<div style=\"background-color: rgb($currentColor, $currentColor, $currentColor);\"></div>";
- $currentColor += 5;
- }
- echo "<br>";
- $currentColor++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement