I have a class named Category to handle all the operations and data about my categories. Now, my class is created however I need to find a way to build an object for each of the categories in my database.In a PHP OOP structure, how should I do this? I was thinking about maybe making some kind of CategoryCollection class which only purpose would be to create an array containing a Category object for each of my categories, however I am not quite sure this would be the best way to achieve this.
Multiple instance of the same class?
object oriented;php;database;object oriented design;class design