what will happen if there is no break statement in PHP?
Answers
Answered by
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
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