Consider following code snippet:
for ($i = 0; $i < 5; $i++) {
    if ($i == 2) break;
    print ++$i;
}
What will be the result of executing the code above?
PHP
PHP Quiz
Start Quiz

or Read more about PHP Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback