一个变量的变量名可以动态设置和使用,所谓可变变量,无非就是一个变量的名字又是一个变量而已。
$a =
“one”;
$one =
“two”;
$two =
“three”;
$three
= “A”;
$a; //one
$$a; //two
$$$a;
//three
$$$$a;
//A
"; echo $$four."
"; echo $$$four."
"; echo $$$$four."
"; ?>
一个变量的变量名可以动态设置和使用,所谓可变变量,无非就是一个变量的名字又是一个变量而已。
$a =
“one”;
$one =
“two”;
$two =
“three”;
$three
= “A”;
$a; //one
$$a; //two
$$$a;
//three
$$$$a;
//A