Computer Science, asked by Anonymous, 10 months ago

what will happen if there is no break statement in PHP?​

Answers

Answered by Rubyvyankatkar11
3

Answer:

If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.

Explanation:

hope it's help you

Answered by FrOoTi773
4

Answer:

Thus the first case block is executed. And since you don't have a break statement it falls through to the next case block and the next and so on... Meaning: This won't work as intended regardless of whether you use break or not.

Explanation:

Hope it's helpful...

Similar questions