Question for you guys real quick to make sure i understand this seems simple enough
PHP Code:
//Example of a for loop
new i
new sum
for (i=1; i<=10; i++)
{
sum += i
}
Steps this follows
</span>
1. Check if the condition is true. If so, continue. If not, stop.
2. Run the code.
3. Run the "increment" parameter.
4. Go to step 1.
Now if i do it like.
PHP Code:
//Example of a for loop
new i
new sum
for (i=1; i<=10; ++i)
{
sum += i
}
Steps this follows
1. Check if the condition is true. If so, continue. If not, stop.
2. Run the "increment" parameter.
3. Run the code.
4. Go to step 1.
Would that be the difference between the ++i and i++