1. Loop—while
Syntax: while (condition) {
//Loop body-loop operation//Update loop conditions++/--;
}
##2.continue
Function: Terminate the execution of this cycle and continue the next cycle
The above is the detailed content of Several ways to use while loop to calculate and print the sum of even numbers from 2 to 100. For more information, please follow other related articles on the PHP Chinese website!