Trick question
Posted: Thu Nov 09, 2006 1:01 am
Edit: I've looked at debug_backtrace and it might work, but WOW would that be a hack 
Edit2: Is it possible given the literal name of a variable '$obj' that I could use the literal name to retreive the content of the variable itself - despite this not making sense technically...maybe PHP has a weapon up it's sleeve?
------------------------------------------EOE----------------------------------------
I have a variable which I pass to a function...
Inside the function is there any way you can think of that would allow me to get the name of the original variable - as awkward or as hackaish as this sounds???
Other than passing the name directly?
Edit2: Is it possible given the literal name of a variable '$obj' that I could use the literal name to retreive the content of the variable itself - despite this not making sense technically...maybe PHP has a weapon up it's sleeve?
------------------------------------------EOE----------------------------------------
I have a variable which I pass to a function...
Inside the function is there any way you can think of that would allow me to get the name of the original variable - as awkward or as hackaish as this sounds???
Other than passing the name directly?