title: How do i check to see if an object has already been instantiated?
body: <p>Is it possible to check and see if an object has already been instantiated with php? I have a mysql class that other pages instantiate to use its methods and what i did was make a log that logs all queries. I noticed that mysql is opened 3-4 times at a time rather than one. So i need to verify if the object is instantiated and if not it wont create another one and open another useless connection.</p>