[nycphp-talk] Output name of Variable
Analysis & Solutions
danielc at analysisandsolutions.com
Fri Feb 7 20:18:17 EST 2003
Hi:
On Fri, Jan 31, 2003 at 12:37:31PM -0500, Jim Musil wrote:
>
> It seems like it would be helpful if there were a way to grab the name
> assigned to a variable and output it. Is there already a function like
> this?
While I understand what you want to do, I don't quite understand what
you're getting at.
In order to find the name of the variable in question, you need to know
the name of the variable in the first place in order to ask the question
about it.
Kind of an existential situation, no? :)
For example, in order to perform the action of unsetting a variable via
unset(), you need to know the name of the variable: say unset($foo).
Similarly, if you wanted to do a function like whats_my_name(), you'd
similarly have to put the name of the variable in there. So, you already
know the name.
What am I missing here?
Are you using varibable variables and trying to find the name of the
initial variable?
See you,
--Dan
--
PHP classes that make web design easier
SqlSolution.info | LayoutSolution.info | FormSolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list