title: PHP OOP ~ Multiple Classes Require Same Class
body: <p>I currently have multiple classes that all depend on one class, the Database class. Each class requires an instance of the Database class to function, and with that, I am a little concerned.</p>
  
  <p>Before I convert all my procedural code to object-oriented code I need to figure this out. I Currently have one database connection for the entire program. However, from what I understand when I convert my code to OOP I will have multiple classes all with open database connections within the same program. (all of these classes will be included in the main program file).</p>
  
  <p>How do I implement this correctly? I'm assuming having 5 open database connections within the same program is certainly not the correct way.</p>