Private Property Sellers

Why can a private property be accessed outside the class December 23    5

So I have a simple class that contains a property and a method. I don't understand why the private property of my class can be outputted outside of that class. Can anyone make some light on this? I read that it a private property can't be accessed ou

PDO with Singleton cannot access private property December 31    2

I´ve made a database connection with PDO and the singleton pattern. Everything works fine as long as I have the $_db variable set as public but it needs to be private... When I make it private I off course get the Error: Cannot access private propert

You Might Also Like