Home » PHP » PHP While & do while Loop

PHP While & do while Loop

The while statement will execute a section of code if and as long as a expression is true. If the expression is true then the code section will be executed. Following the code has executed the expression will over be evaluated and the loop will continue till the expression is seen to be false. The do…while statement will execute a section of code at least once – it later will repeat the loop as continued as a condition is true.

Was this article helpful?

Yes No

What went wrong?

This article contains incorrect information

This article does not have the information I am looking for


How can we improve it?


We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest


Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top