Tag Archive for: break

Drive PHP with break and continue

Break and continue are two very common jobs in almost every programming language. Both play their role somewhere in loops. Loop may be for, foreach, while, do...while or switch.

In this article, I’ll be using for each loop to demonstrate the concept of break and continue. They work in same way in almost every programming language. break will be your friend to save your loop from more iteration and continue will be really helpful to boost your logic.

Read more

Read more
© Copyright - Tech Mug