There is no differences, the increment paramater is always done after
the code has been executed <- i don't know for that part, but the condition is checked before for sure.
++i or i++ makes no difference in a for loop.
In the following code, difference would be that in function 1 checks starts with i == 2 and in fonction2 checks starts with 1.
So, ++i, i is incremented first and its result is then returned, with i++, i value is returned before it is incremented.
PHP Code:
function1()
{
new i = 1
while( ++i <= 10 )
{
//
}
}
function2()
{
new i = 1
while( i++ <= 10 )
{
//
}
}
Would have an importance in a for loop if you would do something like :
for(new i=val; ++i < SOME_VALUE; some other check)
__________________