
What is the difference between $message and $$message?

$Message = "first"; $first= "second"; echo $message //Output first echo $$message //output second
It means $message is a variable and $$Message is variable of variable
A variable of variable allows us to change the name of variable dynamically.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.