/**
* PHP $$ 输出变量字符串对应变量的值
*
* @param
* @arrange 512-笔记网: jb51.cc
**/
<?PHP
$var1 = 'nameOfVariable';
$nameOfVariable = 'This is the value I want!';
echo $$var1;
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
输出:This is the value I want! 原文链接:https://www.f2er.com/php/528158.html