![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveGet name of passed variable in a function
From: Adam <anon@nowhere.com>
Date: Mon Oct 03 2005 - 22:14:21 CEST
I've cobbled a sort of global "debug" routine by using this function:
function debug($str, $strname) {
This function gets included (usually in a header) and then called by
debug($foo, "foo");
I'm having to pass two values - the value of the variable AND it's
Adam.
|