submitted by: spidey

PHP: for loop - simple

for loop - basic control structure. This example loops until the variable hits 10 and then breaks out.


code snippet:
<?php

for ($i 1$i 10 $i++) {
   echo 
$i;
}

?>

sample output:
123456789