Re: finding a variables name

From: Date: Tue, 15 May 2001 03:58:33 +0000
Subject: Re: finding a variables name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52803@lists.php.net to get a copy of this message
In article <3B00A715.4000805@binarylogic.com.au>, joe.blythe@binarylogic.com.au (Joseph Blythe) wrote: > How does one find the name of a variable, not what the variable contains? > > This is not the same as variable variables. > > I know this seems a bit pointless but I have come across a situation > where I really need to be able to do this. Can you give an example of code in which you'd be doing this? (Seeing how you plan to access the variable of indeterminate name would help in suggesting a solution. For example, if it is known to be an array member, you might be able to use key()..., etc.) -- CC

« previous php.general (#52803) next »