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

Tuesday, April 23, 2013

Codecademy Sample Solution: Your First While Loop



<!DOCTYPE html>
<html>
    <head>
<title>A loop of your own</title>
        <link type='text/css' rel='stylesheet' href='style.css'/>
</head>
<body>
    <?php
//Add while loop below
        $loopCount = 0;
        while($loopCount < 10){
            echo "<p>The current loop count is $loopCount</p>";
            $loopCount++;
        }
    ?>
    </body>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts