3 ms·
So basically it operates on a copy unless it determines it doesn't need to? I'm not sure why this is interesting.
by nkozyra 14y ago
So basically it operates on a copy unless it determines it doesn't need to?
I'm not sure why this is interesting.
- wvenable 14y agoIt's even less interesting because PHP arrays have value semantics so someFunc($array) and foreach($array..) aren't really that different. The whole thing is pretty intuitive. The answer to the question is pretty deep though.