Re: variable names
| From: | Richard Lynch | Date: | Tue, 14 Nov 2000 22:34:29 +0000 |
| Subject: | Re: variable names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25294@lists.php.net to get a copy of this message | ||
>Does anybody know if there is a function that returns the name of variable?
>I imagine something like this:
>
>$myvar="bla";
>$name=GetVarName($myvar);
>
>$name=="myvar"
I believe there is no such function.
However, since you could only use this if it were a variable name you had
typed in the first place, I'm not sure what you think it would be useful
for, so you could just type:
$name = 'myvar';
You probably should explain more about why you are asking if you're using
PHP to write your own language or something.