View Single Post
  #4 (permalink)  
Old 01-09-2007, 08:37 AM
montyauto montyauto is offline
WebProWorld New Member
 

Join Date: Dec 2006
Posts: 15
montyauto RepRank 0
Default

Quote:
Originally Posted by mikesmith76
I'm probably going mad here but I can't get my head around what you're trying to do.

Your saying you have a variable $var and want to get the name of it???
Correct!
For instance we have some variables that only have a value after we run a subroutine which value also could be defined after do another subroutine. I want to know which variable has assigned to that certain value.

Can we or not?

So far I do check my list of variables one by one, making my program a bit complicated and long running, troublesome if I put a new variable and forgot to put in my variable list.

Is there any function to get the name of a variable based on its value?

Quote:
Originally Posted by southplatte
might probably depend upon the language you are using whether or not you can do that, and if so what the syntax for doing it would be.

What language are you programming in?
Any languange please, php, perl, phyton whatever that don't make you mad.
Reply With Quote