fork(16) download
  1. <?php
  2.  
  3. for($i = 0; $i < 10; $i++) {
  4. // la executia in care $i == 2, se va "iesi" din structura
  5. if( $i == 2 ) {
  6. break;
  7. }
  8. print $i;
  9. print "<br />\n";
  10. }
  11.  
  12. print "Gata!"; // cand $i == 2 se "sare" direct aici, ignorand celelalte iteratii
  13.  
  14. ?>
Success #stdin #stdout 0.03s 13064KB
stdin
Standard input is empty
stdout
0<br />
1<br />
Gata!