- var_dump: documentation ( source)
- extract: documentation ( source)
<?php
class X {
static function foo() {
$t = "this";
$$t = 5;
extract(array("this" => "foo", "that" => "bar"));
var_dump($this, $that);
}
}
(new X)->foo();
X::foo();