The while loop executes a block of code as long as the specified expression is true.
while(expression) { //execute the statement; }
$i = 1; while ($i <= 5) { echo $i++; } //output: 12345