- var_dump: documentation ( source)
- extract: documentation ( source)
<?php
class Foo {
function bar() {
extract(array('this is a variable with spaces lol' => 'test'));
var_dump(get_declared_vars());
}
}
$f = new Foo;
$f->bar();