Retrieving variable name?
| From: | Jeffrey Sambells | Date: | Wed, 21 Sep 2005 18:32:17 +0000 |
| Subject: | Retrieving variable name? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222901@lists.php.net to get a copy of this message | ||
is it possible to retrieve the name of a variable passed into a function from within the function?
<?
function example($input) {
//for example here can I determine that $input came from $a in the previous scope?
}
example($a);
?>
Jeffrey Sambells
Director of Research and Development
We-Create Inc.
519.897.2552 cell
519.745.7374 office
888.615.7374 toll free
http://www.wecreate.com