php 可变变量


$first ="hello";
$hello ="world";
echo $first." ".$$first;
结果是 hello world

$$first就是$hello,因为$first的值是hello
 
 
http://www.php.net/manual/zh/language.variables.variable.php

猜你喜欢

转载自blog.csdn.net/u012122743/article/details/71218666
今日推荐