Re: [PHP] How to print variable name and contents

2005-06-15 Thread Richard Davey
Hello, Wednesday, June 15, 2005, 2:33:48 PM, you wrote: ncn> I want to write a trace procedure and call it with variable ncn> names, and I am having trouble with the syntax. My goal is to ncn> have a procedure that will echo lines such as: ncn> Trace: $myvar="the contents of $myvar ncn> My atte

[PHP] How to print variable name and contents

2005-06-15 Thread nntp.charter.net
I want to write a trace procedure and call it with variable names, and I am having trouble with the syntax. My goal is to have a procedure that will echo lines such as: Trace: $myvar="the contents of $myvar My attempt that didn't work is to write a function: function my_trace($m){ echo ("\