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 ?;
}
开发者_开发问答
精彩评论