A while ago I was trying to learn PHP OOP by using classes to make a simple forum system. I have a function that will return an array of Post objects. The problem I'm having is I tried to loop over them and call a function, but for some reason PHP is treating them like a number. I have it check if the object is an instanceof Post yet it doesn't work.