PHP while loop

Last Updated: January 30, 2022

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

Syntax

<?php
while (expression) {
	statement;
}
while flow chart
Test