In today video i will give you an overview of php loops. You will study how many loops are used in php.
http://www.dailymotion.com/video/x211a75_php-tutorial-in-urdu-6-overview-of-loops_tech
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.
- It is very powerful and also used in other languages like c++, java, javascript and others.
Php loops plays an important role in coding and especially foreach loop is very powerful and handy while coding big projects.