what is the difference between $message and $$ massage ?

$message is utilized to store variable information. $$message might be utilized to store variable of a variable. Information saved in $message is settled while information archived in $$message could be changed powerfully.

E.g. $var1 = 'Variable 1'

$$var1= 'vari
 
$variable is a normal variable $$variable takes the value of a variable and treats that as the name of a variable:-
$test = "hello world";
$a = "test";
echo $$a;
 
Back
Top