PHP Loop

Loops are use to execute block of statements repeatedly as long as the while expression evaluates to TRUE.
PHP loop are used to execute the same block of code a specified number of times. PHP supports following four loop types.

PHP supports 3 type of loops:

  1. while loop
  2. do-while loop
  3. for loop
  4. foreach

WE are discussing all above loops in next chapters with there syntax, flowchart, and also examples.

There are some terms use with loops that are breal and continue.
We will discuss about continue and break keywords used to control the loops execution.

Help others by sharing the content!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.