use*_*590 1 php variables
是否有可能获得函数内部分配函数的变量名?
$firstName = greet(); $John = greet(); function greet() { $name = /* things to get the "firstName" without the $ */; echo "Hello $name!"; }
这应该打印:
你好firstName! 你好约翰!
你好firstName!
你好约翰!
我想做这样的事情,有可能吗?
dec*_*eze 6
不,不是任何理智,可行的方式. 首先,也没有明智的理由依赖这些信息.
归档时间:
12 年,3 月 前
查看次数:
43 次
最近记录: