for loop - How to generate a range of numbers in PHP with increment of 0.25? -


I want to make a list of numbers with a 0.25 difference between them, e.g.

  0 0.25 0.50 0.75 1 1.25 ..... 9.75 10  

How can this be done?

Just use a loop. For the

  ($ i = 0; $ i & lt; = 10; $ i + = 0.25) echo $ I, '& lt; Br / & gt; ';  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -