You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
202 B

<?php
//可变变量,有点像c语言里得宏
$a='hallo';
echo $a.'<br>';
$$a='world'; //=>${$a}='world' =>($a='hallo')=> $hallo='world'
echo $$a.'<br>';
echo ${$a}.'<br>';
?>