[thelist] get name of variable variable in PHP

Sarah Adams mr.sanders at geekjock.ca
Tue Sep 26 15:02:22 CDT 2006


I'm working on some code that uses PHP's "variable variables" [0] and in
the process of debugging, I'd really like to be able to print out not
just the value but the *name* of a variable variable (e.g. in a loop,
where it might not be obvious exactly which variable variable is the one
being debugged). Is there some function that will allow me to do this?

[0] http://ca.php.net/manual/en/language.variables.variable.php

-- 
sarah adams
web developer & programmer
portfolio: http://sarah.designshift.com
blog: http://hardedge.ca



More information about the thelist mailing list