From the menu go to: Insert > PHP Tags >while.
A while loop will, as the name suggests, execute a piece of code until a certain condition is met. For instance if you wanted to print out the string "Alleycode Rocks!" 5 times you could use the following code:
Example:
<?php
$times = 5;
$x = 0;
while ($x < $times) {
echo "Alleycode Rocks!";
++$x;
}
?>
See also:
What is PHP?
Tutorials