PHP call by reference function


Function will be call with reference variable.
The $var (single dollar) is a normal variable with the name var that stores any value like string, integer, float, etc.
The $$var (double dollar) is a reference variable that stores the value of the $variable inside it.
Example:-
  <?php
   $x = " abc ";
   $$x = 200;
  echo $x."<br/>";  
  echo $$x."<br/>";
   echo $abc;  
  ?>
 

Output

200
200