- var_dump: documentation ( source)
<?php
class A {
private $answer = 42;
function other_method() {
return $this->answer;
}
function method() {
return A::other_method();
}
}
$a = new A();
var_dump($a->method());