You are here: Re: Get name of passed variable in a function « PHP Programming Language « IT news, forums, messages
Re: Get name of passed variable in a function

Posted by Andy Hassall on 11/16/36 11:28

On Tue, 04 Oct 2005 09:14:21 +1300, Adam <anon@nowhere.com> wrote:

>function debug($str, $strname) {
>
>debug($foo, "foo");
>
>I'm having to pass two values - the value of the variable AND it's
>name. Is there a way of extracting the NAME of the variable ("foo" in
>this case) without having to pass it?

In short, no.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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