PHP while loop The while is a control flow statement that allows code to be executed repeatedly based on a given boolean condition. This is the general form of the while loop: while (expression): statement The while loop executes the statement when the expression is evaluated to true. The statement is a simple statement terminated byContinue Reading