This is probably dumb but.. how can I find out the name of a variable? What I want is this:

Code:
$var = 'bla';
$foo = array( 'yeah' );

print_name( $var ); // Print: var
print_name( $foo ); // Print: foo