PHP while loop

Last Updated: June 13, 2021

You can run the statement/ statements while the expression is equal to true

Syntax

<?php
while (expression) {
	statement;
}