View Single Post
Old 12-12-2012, 02:26 AM   PM User | #3
sfraise
Regular Coder

 
Join Date: Mar 2009
Posts: 175
Thanks: 3
Thanked 1 Time in 1 Post
sfraise is an unknown quantity at this point
Thanks Fou-Lu for the help!

I am trying to make the move over to using oop all of the time. It's clearly where everything is moving to and it obviously has some advantages. I think I have a pretty good handle on the basics, but I'm still trying to figure out how to utilize the built in classes and methods.

I realize that my example is not really how to instantiate a class and set an object, it was just a quick and dirty way to see my output. What I really wanted to see is if it were possible to return the data through the ArrayObject class's getIterator method using a multidimensional array. To do that it seemed like the easiest thing to do was just feed it a static multidimensional array and see if I could just iterate over it, hence the quick and dirty example. I think where I'm driving myself crazy is the idea that I could use loops within a loop to do it the old fashioned way, and in my mind I should be able to create some sort of a sub-iterator within the iterator function in much that same manor, I guess it's difficult to pull myself out of that mindset.
sfraise is offline   Reply With Quote