I have wondered for a while now, what the reason is behind the renaming of a variable for a foreach statement. So for example, why is this:
foreach ($Foobar as $Foo) {};
Not used like this:
foreach ($Foobar) {};
I understand that this would just check to see if the value was true and is therefore a bad example, yet that doesn't explain why the whole variable needs to be renamed?