fork download
  1. <?php
  2. $n;
  3. for($i=1;$i<=3;$i++){
  4. for($j=1;$j<=$i;$j++){
  5. echo "*";
  6. }
  7. echo "\n";
  8. }
Success #stdin #stdout 0.03s 25704KB
stdin
$n=5;
stdout
*
**
***