[PHP-DEV] Name of variable
Hello, i need to get the name of the variables who passed in one function, for example: switch ((*struc)-type) { case IS_BOOL: fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON, ((*struc)-value.lval?true:false)); break; With this i get the typo of variable, and what can i do to get the name of variable?? Thx. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Name of variable
You can't get the name of the variable. For what purpose do you need it? Andi At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote: Hello, i need to get the name of the variables who passed in one function, for example: switch ((*struc)-type) { case IS_BOOL: fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON, ((*struc)-value.lval?true:false)); break; With this i get the typo of variable, and what can i do to get the name of variable?¿? Thx. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Name of variable
I need to get the because i doing a simple debugger, and i get the type of variable and his information , and i would like to get his name, any possible way does not exist? thx El sb, 22-02-2003 a las 15:42, Andi Gutmans escribi: You can't get the name of the variable. For what purpose do you need it? Andi At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote: Hello, i need to get the name of the variables who passed in one function, for example: switch ((*struc)-type) { case IS_BOOL: fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON, ((*struc)-value.lval?true:false)); break; With this i get the typo of variable, and what can i do to get the name of variable?? Thx. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Name of variable
On 22 Feb 2003, Ivan Rodriguez wrote: I need to get the because i doing a simple debugger, and i get the type of variable and his information , and i would like to get his name, any possible way does not exist?¿ It *is* possible, but it is not straight forward. plugBut why reinvent the wheel? Have a look at Xdebug: http://xdebug.derickrethans.nl/plug Derick -- Stop mad cowboy disease! - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Name of variable
I think xdebug might do it (http://xdebug.derickrethans.nl/) although I've never used it. Andi At 03:56 PM 2/22/2003 +0100, Ivan Rodriguez wrote: I need to get the because i doing a simple debugger, and i get the type of variable and his information , and i would like to get his name, any possible way does not exist?¿ thx El sáb, 22-02-2003 a las 15:42, Andi Gutmans escribió: You can't get the name of the variable. For what purpose do you need it? Andi At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote: Hello, i need to get the name of the variables who passed in one function, for example: switch ((*struc)-type) { case IS_BOOL: fprintf(_dyn_log_file_fp, %sbool:%s\n, COMMON, ((*struc)-value.lval?true:false)); break; With this i get the typo of variable, and what can i do to get the name of variable?¿? Thx. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Name of variable
On Sat, 22 Feb 2003, Derick Rethans wrote: On 22 Feb 2003, Ivan Rodriguez wrote: I need to get the because i doing a simple debugger, and i get the type of variable and his information , and i would like to get his name, any possible way does not exist?¿ It *is* possible, but it is not straight forward. plugBut why reinvent the wheel? Have a look at Xdebug: http://xdebug.derickrethans.nl/plug hmm, weird, it DID do it, as seen in the screenshots... but somehow it got lost in the current code :) Derick -- Stop mad cowboy disease! - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Name of variable
Thx for all, i was trying to do something :-) El sb, 22-02-2003 a las 15:57, Derick Rethans escribi: On 22 Feb 2003, Ivan Rodriguez wrote: I need to get the because i doing a simple debugger, and i get the type of variable and his information , and i would like to get his name, any possible way does not exist? It *is* possible, but it is not straight forward. plugBut why reinvent the wheel? Have a look at Xdebug: http://xdebug.derickrethans.nl/plug Derick -- Stop mad cowboy disease! - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php