$variable is a normal variable $$variable takes the value of a variable and treats that as the name of a variable
eg: $var = 'welcome'; echo $var //prints welcome
$$var = 'to programmingfaqs';
echo "$var ${$var}"; //prints welcome to programmingfaqs echo "$var $welcome"; //prints welcome to programmingfaqs
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
$variable is a normal
Sun, 06/22/2008 - 17:48 — admin$variable is a normal variable
$$variable takes the value of a variable and treats that as the name of a variable
eg: $var = 'welcome';
echo $var //prints welcome
$$var = 'to programmingfaqs';
echo "$var ${$var}"; //prints welcome to programmingfaqs
echo "$var $welcome"; //prints welcome to programmingfaqs