I have a quick question that is probably easy to answer. I collapsed, but not sure if I'm looking correctly or what. Anyway, using PHP, how can I increase half?
For example, I know that I can use the following loop:
<?php
for ($i=1; $i<21; $i++) {
print($i);
}
And he will print 1 - 20.
But how can I make it output something like the following:
1
1.5
2
2.5
etc...
Sorry for my ignorance of this, I just don't know how to do this. Thank!
source
share