Here is a reference to a for – loop (here: http://php.net/manual/en/control-structures.for.php)
the first example in this reference is:
/* example 1 */
for ($i = 1; $i <= 10; $i++) {
echo $i;
}
$i <= 10
need to be adjusted by you- echo $i; will output 1..10 in the example (also needs to be replaced by you)