Re: Can i take the variable name in a function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jônata Tyska Carvalho wrote:
> 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?

no.

> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux