Mar 24, 2007 10:20
Okay, I cannot figure out how to make foreach() iterate over
an array of objects, assigning keys to a loop variable,
in PHP4. Either what I'm trying to do constitutes abuse of the
foreach() control structure, or I need more sleep. (I'm hoping
it's the second of those two possibilities and will make more
sense by this afternoon.)
Wheee!
programming
Leave a comment
Comments 3
doesn't look like it can be done. like classic C++ you need to know what properties are in your object before you code it.
Reply
Reply
Reply
Leave a comment