- var_dump: documentation ( source)
<?php
class A
{
private $value;
public function setValue($val)
{
$this->value = $val;
}
public function getValue()
{
return $this->value;
}
}
class B extends A
{
private $value;
}
$a = new A;
$b = new B;
$a->setValue(123);
$b->setValue(544);
var_dump($a->getValue(), $b->getValue());