range - How can I find and print all of the numbers between two numbers in PHP? -


right i'm asking user 2 numbers. i'm trying print numbers in between $one , $two assuming $one smaller $two.

just simple for loop should trick:

for($i=$a; $i<=$b; $i++) {   echo $i; } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -