From the course: PHP Essential Training
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Continue - PHP Tutorial
From the course: PHP Essential Training
Continue
- [Narrator] We've now taken a look at three types of loops: WHILE loops, FOR loops and FOR EACH loops. In the next two movies, we're going to learn how to use the functions continue and break to get more utility and flexibility from these loops. We'll start with continue. Continue is used inside a loop to skip the rest of the current iteration and to go immediately to the condition evaluation that starts the next iteration. It may sound silly but for me, continue evokes the image of a Hollywood casting director shouting next in the middle of an audition. It's like saying we've seen enough. Thanks. Let's skip ahead to the next one. To give you an example, let's imagine that we have a database of college students and our code is going to loop through them and send them all an email. But if the student is already signed up for a biology course this semester, then we aren't going to send them the email. So we start the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.