You are here: Re: Easy question, return variable name « PHP Programming Language « IT news, forums, messages
Re: Easy question, return variable name

Posted by Heiko Richler on 12/14/06 21:40

Tom wrote:
> Is there a function to get a variable to return its name w/datatype of
> string? i.e.:
>
> $var would return "var"

No there is no such function.

Usually the function will get the value of the given Variable in an
Activation Record. The value carries no information about its source.

If an value is passed as an reference there may be a lot of variables
referring to the same value. Which variables name would you like? When
your code is compiled the result may not carry any names for variables.

Generally there is no good reason why you should need such an function.
What would you like to do?

Heiko
--
http://portal.richler.de/ Namensportal zu Richler
http://www.richler.de/ Heiko Richler: Computer - Know How!
http://www.richler.info/ private Homepage

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация