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.

  1. For Loop
  2. While Loop
  3. Do while Loop
  4. 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.

Share This Story, Choose Your Platform!