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