Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.  
  3. $count = 0;
  4. $string = 'Fred';
  5.  
  6. while($count < 10) {        // Let's just do it eleven times.
  7.     $internalCount = 0;
  8.     while($internalCount < $count) {
  9.         echo ' ';
  10.         $internalCount++;
  11.     }
  12.     echo $string . "\n";
  13.     $count++;
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement