[nycphp-talk] Output name of Variable
Mark Armendariz
nyphp at enobrev.com
Fri Feb 7 22:15:47 EST 2003
I think the idea was to be able to output all current variables at any
time in the script. Which hcan be very helpful in debugging. A
print_r($_Post) can be helpful.
At least that's what I had gathered for the question.
Mark
-----Original Message-----
From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com]
Sent: Friday, February 07, 2003 8:18 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Output name of Variable
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
--- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk
mailing list