Answers for "difference betweeen $x and $$x"

PHP
0

difference betweeen $x and $$x

-$ variable is normal variable 

	-$$ variable is reference variable. 

Ex: 

<?php   

$x = 'kinjal'; 

$$x = 20; 

echo $x;	//kinjal 

echo $$x;	//20 

echo $kinjal;	//20 

?>
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language