Is there any way to list all accessible methods of an object?
I am rewriting a big chunk of code of an even bigger programm and would like to know what kind of object a function return as output and what are the methods that are accessible to this object.
Something similar to print_r will be great, but with a list of all the possible functions that an object has access to.