fork download
  1. <?php
  2.  
  3. $data = array('A', 'B', 'C', 'D', 'E', 'F');
  4. $count = count($data);
  5. for ($k = 0; $k < $count; $k++) {
  6. echo str_repeat("V", $k);
  7. echo str_repeat("X", $count-$k);
  8. echo "<br />";
  9. }
  10. ?>
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
XXXXXX<br />VXXXXX<br />VVXXXX<br />VVVXXX<br />VVVVXX<br />VVVVVX<br />