Rasmus Lerdorf wrote:
We can't just randomly reset variables based on their scope in this one
specific case. If we are going to "fix" this, it should be done by
introducing a way to do proper local scope variables. Resetting a
reference simply because it is convenient in this one case would be
Adam Harvey wrote:
2009/12/27 Mike Wacker :
PHP's documentation for foreach states that if you iterate by reference
[foreach ($ii as &$i) ...], you should unset $i after the loop. $i still
points to the last element of the array - updating $i or reusing it will
update the last eleme
Chris Stockton wrote:
Hello,
On Mon, Nov 16, 2009 at 6:13 PM, Kalle Sommer Nielsen wrote:
But what is every ones input on the matter of attempting to boost
PHP6's development? I'm willing to give my part in whatever I can to
help getting up on the feet to get this ball rolling.
I think that
PHP's documentation for foreach states that if you iterate by reference
[foreach ($ii as &$i) ...], you should unset $i after the loop. $i
still points to the last element of the array - updating $i or reusing
it will update the last element of the array.
In short, why doesn't PHP automatical