Can I get a variable name as a string? [Archive] - Indian Web Development Forums - India's First Ever WebMaster Forums

PDA

View Full Version : Can I get a variable name as a string?


montyauto
02-10-2007, 10:46 AM
I've searching in php and perl for this:

how do i get a variable name as a string e.g i have a variable
myvar:1 2 5 3 2 6 7 8
i want to get "myvar"

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