[PHP] Re: foreach and destroying variables for memory saving

2008-12-10 Thread Gal Gur-Arie
Tim | iHostNZ wrote: > Hi All, > > Just to annoy the hell out of you, another thing that has been on my mind > for a while: > > I love the foreach ($ar as $k => $v) { ... } construct and use it all the > time. However, I read somewhere that foreach actually uses a copy of $ar > instead of the arr

[PHP] Re: foreach and destroying variables for memory saving

2008-12-10 Thread Carlos Medina
Tim | iHostNZ schrieb: Hi All, Just to annoy the hell out of you, another thing that has been on my mind for a while: I love the foreach ($ar as $k => $v) { ... } construct and use it all the time. However, I read somewhere that foreach actually uses a copy of $ar instead of the array itself by