开发者

Variable Name as string

开发者 https://www.devze.com 2023-01-30 08:01 出处:网络
I need the variable name as string so that I can use it. For example: $name = \"Some Name\"; echo \"The name of the variable that holds the name is \".findname($name);

I need the variable name as string so that I can use it.

For example:

$name = "Some Name";
echo "The name of the variable that holds the name is ".findname($name);

function findname($variable) {

 //how to find the name of the variable

 return ?;
}
开发者_开发问答
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号