First, we give a piece of code:
<?php
$a = 'abc';
$$a = '789';
echo $abc;
?>
Copy after login
The result is shown in the figure:

##Explanation:
$a ='abc';
$$a can be understood as parsing the following $a first, then parsing it, and finally parsing it into $abc
So directly printing $abc is a variable , it prints out as 789
For more related PHP issues, please visit the PHP Chinese website:
php video tutorial
The above is the detailed content of What does $$ mean in PHP?. For more information, please follow other related articles on the PHP Chinese website!