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

Tuesday, April 23, 2013

Codecademy Sample Solution: While Loop Syntax



<!DOCTYPE html>
<html>
    <head>
<title>Your First PHP while loop!</title>
</head>
<body>
    <?php
$loopCond = true;
while ($loopCond){
//Echo your message that the loop is running below
echo "<p>The loop is running.</p>";
$loopCond = false;
}
echo "<p>And now it's done.</p>";
    ?>
    </body>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts