Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- for ($i = 0; $i < 5; $i++) {
- echo "<p>count down from $i</p>";
- }
- ?>
- <?php
- $num = array(1, 2, 3);
- $count = 0;
- while ($count <= count($num)) {
- echo "<p>Count from $num[$count]</p>";
- $count++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement