Join Kevin Skoglund for an in-depth discussion in this video Continue, part of PHP Essential Training.
- [Instructor] 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 though 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 loop, we check to see…if the student has signed up for biology,…and if so, then we know that we don't need…
- What is PHP?
- Embedding PHP code on a page
- Inserting code comments
- Variables, strings, arrays, and Booleans
- If, else, and elseif statements
- While and for loops
- User-defined functions
- Function arguments and return values
- Debugging and troubleshooting
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
1. PHP Overview
2. First Steps
3. Explore Data Types
4. Control Structures: Logical Expressions
5. Control Structures: Loops
6. User-Defined Functions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.