print_r to get object methods in PHP?
How can I show what all the objects’ methods and properties are?
That is, including the property’s values?
To discover what the properties and the methods of an object are you can use ReflectionClass.
Also worth nothing that PHP’s documentation is pretty good and generally a good place to ask first.
Edit: Of course, asking here seems to have its benefits as well. I never knew about the ReflectionClass Davide brought up 🙂