Say i have this PHP code:
$FooBar = \"a string\";
i then need a function like this:
print_var_name($FooBar);
Why don't you just build a simple function and TELL it?
/**
* Prints out $obj for debug
*
* @param any_type $obj
* @param (string) $title
*/
function print_all( $obj, $title = false )
{
print "\n\n";
if( $title ) print "$title\n";
print "\n\n";
var_export( $obj );
print "\n\n
\n\n";
}
print_all( $aUser, '$aUser' );