I know this is not exactly reflection, but kind of. I want to make a debug function that gets a variable and prints a var_dump and the variable name.
Of course, when
Not elegantly... BUT YOU COULD FAKE IT!
$a = 10 //becomes $a = '0a'; $$a = 10;
Addendum: Only do this if you are