Say i have this PHP code:

$FooBar = "a string";

i then need a function like this:

print_var_name($FooBar);

which prints:

FooBar

Any Ideas how to achieve this? Is this even possible in PHP?

26 Answers
26

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *