Skip to content
Advertisement

PHP class with 3 objects iterate through array

I have to demonstrate PHP class with 3 objects of that class, then add these class objects to an array, and iterate through the array displaying the object data variable values in an HTML table. I was not able to even echo values without a table, not sure what is wrong there. Here is what I got so far.

JavaScript

Advertisement

Answer

try this:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement