Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Your First PHP while loop!</title>
- </head>
- <body>
- <?php
- $loopCond = true;
- while($loopCond == true){
- //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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement