Concept of loops in PHP

The concept of loops is similar in c,c++, java , javascript etc. in any programming language but the only difference is the way of writing each loops in different languages.

Types of Loop

  • While
  • Do-While
  • For Loop
  • Foreach Loop

While loop:

Do-while loop:

For loop:

Foreach loop:

(Visited 34 times, 1 visits today)

Written by: