Tag: loop

Loop use to execute the same block of code single or multiple times in the program.

With this, you can do more with less number of codes.

In PHP, there are various types of loops – 

  • while
  • do while
  • for
  • foreach

Various types of Loops in PHP

PHP