In today video i will give you an overview of php loops. You will study how many loops are used in php.
There are four types of loops used in php.
- For Loop
- While Loop
- Do while Loop
- Foreach Loop
We use loops in php because of following reason:-
- By using loops we can speed up our coding and get rid of long coding.
- It is a short term coding which comprises of code by which we can get lot of output and using small code.
Php loops plays an important role in coding and especially foreach loop is very powerful and handy while coding big projects.