SyntaxFix
Write A Post
Hire A Developer
Questions
You should do it like this:
for ($i=1; $i <=10; $i+=2) { echo $i.'<br>'; }
"+=" you can increase your variable as much or less you want. "$i+=5" or "$i+=.5"