Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. for ($i = 0; $i < 5; $i++) {
  3. echo "<p>count down from $i</p>";
  4. }
  5. ?>
  6.  
  7. <?php
  8. $num = array(1, 2, 3);
  9. $count = 0;
  10. while ($count <= count($num)) {
  11. echo "<p>Count from $num[$count]</p>";
  12. $count++;
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement