$stop) { return(FALSE); } elseif ($increment <= 0) { return(FALSE); } else { for ($i = $start; $i < $stop; $i = $i + $increment) { print "$i "; } } return(TRUE); } ?>

Counting from x to y

Counting from 1 to 10 by 1:

Counting from 2 to 20 by 2: