Introduction
Day 6: Control Structures.
Welcome to the sixth day of your PHP learning journey.
Today you are going to learn about control structures: the tools that let you execute a piece of code conditionally, depending on conditions such as variable values.
You will see how to execute code depending on the result of a comparison, how to repeat the same piece of code a specific number of times, and more.
By the end of the day, you will know how to use the IF / ELSE, WHILE, FOR and FOREACH conditional statements.
What you will learn today.
- How control structures work in PHP.
- The IF / ELSE block.
- Nested and multiple IF conditions.
- The WHILE loop.
- The FOR loop.
- The FOREACH loop.
0 comments