Re: Name of variable to string

From: Date: Fri, 08 Feb 2008 15:33:59 +0000
Subject: Re: Name of variable to string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268946@lists.php.net to get a copy of this message
tedd wrote:
Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? Cheers, tedd At some point or the other you will have to define $this_variable as $this_variable, so at that point you will have access to the string 'this_variable'. Even if you define it using variable vairables or within or for each loop (e.g. get_definied_vars, $_POST) you will have an oppertunity to get the 'this_variable' string.
???? Ade

« previous php.general (#268946) next »