Answers for "difference betweeen $ and $$"

PHP
0

difference betweeen $ and $$

-$ 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

Code answers related to "difference betweeen $ and $$"

Browse Popular Code Answers by Language