Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Memory usage of foreach
- Daniel Klein
April 8, 2008, 4:39 pm
rate this thread
doing something like:
while (list($key, $value) = each($myarray))
iterates over the original array. Up til now, I've been using the 'foreach'
If this is true then I'm concerned about memory usage as some of the arrays
I'm working on can grow fairly large.
Is it possible to check memory usage of your php program?
I may be converting code over to the list() method. What are the caveats of