Introduction to Loops
This lesson introduces the concepts of loops and the different kinds of loops in PHP.
We'll cover the following
What are Loops?
Loops allow a programmer to execute the same block of code repeatedly instead of re-writing code that needs to be executed multiple times.
We will make heavy use of conditional statements in this section, so if you want to jog your memory, head over to the lesson on conditionals.
The following figure illustrates how loops work:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy