ID: 49334 Updated by: der...@php.net Reported By: hueen at yahoo dot com -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: osx PHP Version: 5.2.10 New Comment:
It can be quite useful, especially when you break out of the foreach with a break. We can't really go about changing internals for yet another egde case. Previous Comments: ------------------------------------------------------------------------ [2009-08-23 10:27:56] hueen at yahoo dot com Description: ------------ In regards to bug #29992 Does anything speak against having foreach() unset the "as" variable before iterating? I can hardly imagine anyone would want it to remain a reference when walking through an array. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49334&edit=1