Join Kevin Skoglund for an in-depth discussion in this video Break, part of PHP Essential Training.
- [Instructor] In this movie we are going…to learn to use break with our loops.…We've seen break already.…Remember it was an important part of working…with switch statements.…We used break to stop execution of any other cases…and then to exit the switch function.…We'll use it in a similar way with loops.…Break will end execution of the loop.…Not just the current duration but all the durations.…You can think of it as breaking out of the loop.…In the last movie for the continue function…I suggested the image of a Hollywood casting director…saying next in the middle of an audition…that was in progress.…
Let's continue that metaphor here for a second.…Break would be as if the casting director watched…a few auditions and then said this is the one.…You've got the job.…The rest of the auditions are canceled.…I don't need to see anymore.…Break stops the whole process…and it's very useful when we've found…what we're looking for or we've reached a definitive…answer to a question.…We could stop looking,…stop looping and move on.…
- 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.