its easy to use the for loop

lets say i want to display numbers 1 to 10 i would do this:

PHP CODE:
<?php
	for($counter =1; $counter <= 10; $counter++) {
		print("counter is $counter<br>n");
	}
?>  


this would be the output:
counter is 1
counter is 2
counter is 3
counter is 4
counter is 5
counter is 6
counter is 7
counter is 8
counter is 9
counter is 10