在函数内获取赋值变量

use*_*590 1 php variables

是否有可能获得函数内部分配函数的变量名?

例:

$firstName = greet();
$John = greet();

function greet()
{
$name = /* things to get the "firstName" without the $ */;
echo "Hello $name!";
}
Run Code Online (Sandbox Code Playgroud)

这应该打印:

你好firstName!

你好约翰!

我想做这样的事情,有可能吗?

dec*_*eze 6

不,不是任何理智,可行的方式.
首先,也没有明智的理由依赖这些信息.