Re: Variable names

From: Date: Tue, 02 Apr 2002 13:48:15 +0000
Subject: Re: Variable names
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91123@lists.php.net to get a copy of this message
Hello Kodrik, I would do the following code. Excuse me if there are many mistakes. I am only a newbie. So: function somefunction($myvar) { do something... ... ... return \$myvar; } $varname = somefunction($myvar); echo "$varname"; Hope it helps you SR kodrik a écrit : > If I have a variable, how do I extract the name of the variable. > > In principle: > > $varname=somefunction($myvar); > > The value of $varname is then "myvar" > > How do I do it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#91123) next »