Imagine this
foreach ($items as &$i){}
for ($i=0;$i<100;$i++){}
We iterate an array to modify it in place, then use $i as index in unrelated loop and whoops, the the last element is suddenly changed
Imagine this
foreach ($items as &$i){}
for ($i=0;$i<100;$i++){}
We iterate an array to modify it in place, then use $i as index in unrelated loop and whoops, the the last element is suddenly changed