NYCPHP Meetup

NYPHP.org

[nycphp-talk] Output name of Variable

CHUN-YIU LAM chun_lam at hotmail.com
Fri Jan 31 15:02:02 EST 2003


use $$var






----Original Message Follows----
From: Jim Musil <jim at nettmedia.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: [nycphp-talk] Output name of Variable
Date: Fri, 31 Jan 2003 12:37:31 -0500
Received: from parsec.nyphp.org ([66.250.131.26]) by 
mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 31 Jan 
2003 09:38:00 -0800
Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by 
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0VHbVon049918for 
<chun_lam at hotmail.com>; Fri, 31 Jan 2003 12:37:56 -0500 (EST)(envelope-from 
null at nyphp.org)
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Message-Id: <200301311737.h0VHbVon049918 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=2710>
X-List-Software: Paralist 0.6
List-ID: <nyphptalk.nyphp.org>
List-Owner: <mailto:listmaster at nyphp.org>
List-Archive: <http://nyphp.org/list/paralist_archive.php?L_lid=1>
List-Subscribe: <http://nyphp.org/list/>
List-Unsubscribe: <http://nyphp.org/list/>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at nyphp.org
X-OriginalArrivalTime: 31 Jan 2003 17:38:01.0544 (UTC) 
FILETIME=[8082A480:01C2C94F]

It seems like it would be helpful if there were a way to grab the name
assigned to a variable and output it. Is there already a function like this?

I would use this mainly for tracing and reporting. So, if I had a simple
function show_variable($var), it would not only output the value assigned to
the variable, but would also show the name of the variable itself.

Am I missing it?


Jim Musil
<jim at nettmedia.com>
Nettmedia, Senior Developer
345 Seventh Ave., 24th Floor.
New York, NY 10001
Tel. 212.629.0004 x 131



--- Unsubscribe at http://nyphp.org/list/ ---


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the talk mailing list