- var_dump: documentation ( source)
<?php
class A {
private $b;
public function __construct() {
}
private function a() {
return $b;
}
function method() {
return A::a();
}
}
$a = new A();
var_dump($a->method());