Can i take the variable name in a function?
| From: | Jônata Tyska Carvalho | Date: | Wed, 11 Oct 2006 14:58:31 +0000 |
| Subject: | Can i take the variable name in a function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242978@lists.php.net to get a copy of this message | ||
How can i take the variable name inside a function, ex:
definition:
function example( $ex ){
echo "Variable Name is $ex "; // how to do this?
}
use:
example($ball);
output: Variable Name is ball;
another:
example($sportCar);
output: Variable Name is sportCar;
is that possible?
--
Jônata Tyska Carvalho
-----------------------------------------------------------------
-- Técnico em Informática pelo Colégio Técnico Industrial (CTI)
-- Graduando em Engenharia de Computação
Fundação Universidade Federal de Rio Grande (FURG)