Quotes help make search much faster. Example: "Practice Makes Perfect"

Sunday, April 21, 2013

Codecademy Sample Solution: 'For' Loop Syntax



<html>
  <head>
    <title>For Loops</title>
  </head>
  <body>
    <p>
      <?php
        // Echoes the first five even numbers
        for ($i = 2; $i < 11; $i = $i + 2) {
          echo $i;
        }
      ?>
    </p>
  </body>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts