Sweet! $i starts at 0 and increases as long as the condition is true. Once it returns false, the loop stops.
$i
0
true
false
Psst: $i++ is an even shorter version of $i += 1.
$i++
$i += 1
Might it be that the for loop uses the for keyword?
for