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?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes