From the menu go to: Insert > PHP Tags >for.
The for loop is useful when you have to have the same task repeated a number of times. The for loop works by first initializing a variable, then do a test. If it is true, the code is executed. This will increment the variable and then execute the main-code again. The process is repeated until a particular condition is satisfied. It's called the condition of escape (or exit condition) for the loop.
Example:
<?php
for($i = 1; $i < 11; ++$i){
echo "$i<br>";
}
?>
See also:
What is PHP?
Tutorials