源码如下:

<?php
$str="welcome";
$$str="to only";
$$str.=" study";
echo $welcome;
?>

输出结果:

to only study

释义:$$str可以理解为$($str).

Related Posts: $str=”welcome”; $$str=”to only”; $$str.=” study”; echo $welcome;输出结果 :