Join Kevin Skoglund for an in-depth discussion in this video While loops, part of PHP Essential Training.
- [Instructor] In the previous chapter…we looked at the first type of control structure,…logical expressions.…Which let our code make choices about how to proceed.…In this chapter we're going to be looking…at the other main type of control structure, loops.…Loops allow us to write code that will execute…more than once without having to wite out…all that code over and over again.…The code executes once and then it loops back…to the start to execute again.…And each time the code executes,…it doesn't necessarily do the exact same thing.…The values and variables…maybe changed each time it goes through the loop.…So the logical expressions inside the loop…do different things.…
And of course a critical feature of any loop…is knowing when to stop looping.…We're going to take a look at three types of loops.…While loops, for loops, and for each loops.…We're going to begin with while loops.…I think these are the simplest.…The syntax is simply while, followed by an expression,…that's the argument to it, and then a statement.…
- 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.