$message is used to store variable data. $$message can be used to store variable of a variable. Data stored in $message is fixed while data stored in $$message can be changed dynamically.
Example
$Message = "Hello";
$Hello= "Raj";
echo $message //Output:- Hello
echo $$message //Output :-Raj
It means
$message is a variable and $$Message is variable of variable
A variable of variable allows us to change the name of variable dinamically
Copyright ©2022 coderraj.com. All Rights Reserved.