class animal
{
var $type;
var $says;
function __construct($_type)
{
$type = $_type;
}
function Does_he_think_hes_the_boss()
{
return ($type == 'cat');
}
} // animal
$dog = new animal('dog');
var_dump($dog);
gives
object(animal)[1]
public 'type' => null
public 'says' => null
I’d like to get as much info as I can about a class (for debugging porpoises) – names of variables, names of functions (with their signatures, if possible), parent class, if any, etc …
How much info can I get from an object?
You can retrieve all detailed information you need about object using reflection