|
Posted by Andy Hassall on 12/16/06 23:28
On 16 Dec 2006 15:23:19 -0800, "seaside" <seaside.ki@mac.com> wrote:
>Currently, I use this call
>
> traceVariable( $_SERVER['PHP_SELF'], '$_SERVER["PHP_SELF"]' );
>
>to pass a variable by reference to 'traceVariable' and by value a
>description string.
>
>Since the description string is very likely to be identical to the
>source code (string) of the first parameter, I'd like to write this:
>
> traceVariable( $_SERVER['PHP_SELF'] );
>
>Any ideas, how to get the literal expression (source) of a parameter,
>which got passed to a method/function?
See the thread "Easy question, return variable name" from just 2 days ago.
--
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]
|