Results: 1582
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
For, While Loops CODE
The for loop is used when you know in advance how many times the script should run. Syntax
for (init counter; test counter; increment counter) {
  code to be executed for each iteration;
}

The PHP while Loop

The while loop executes a block of code as long as the specified condition is true.

Syntax
while (condition is true) {
code to be executed;
}
`
by Gigi Butchvelashvili
2 years ago
1
PHP
-1
by დავით ქუთათელაძე
2 years ago
0
PHP
break statement
-1
Results: 1582