- var_dump: documentation ( source)
<?php
class Test {
public $method;
public function testA() {
}
public function callIt() {
$method = $this->method;
$method();
}
}
$t = new Test();
$t->method = $t->testA;
var_dump($t->callIt());
die;