Posted by Andy Hassall on 10/03/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
[Back to original message]
|