Re: name of the variable

From: Date: Fri, 09 Mar 2007 09:47:13 +0000
Subject: Re: name of the variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-250159@lists.php.net to get a copy of this message
Cefull Lo wrote: > Hi everyone, > Is there any function that return the name of the variable?? > i.e. > > $foo='abc'; > $bar=somefunc($foo); // $bar='foo' here no - and if you think you need this then there is something very wrong with you code, it's completely backward-assed and you need to rethink what you are doing. maybe if you explain the exact nature of your problem we could show you a better way of tackling it so that you are no longer in need of a function that 'tells you the name of the varable' > > Thanks > >

« previous php.general (#250159) next »