Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $a = '1'; // $a is the string '1'
  2. $b = &$a; // $b is assigned to $a by reference, so they point to the same content '1'
  3. $b = "2$b"; // $a and $b are now '21' because double quotes were used, so the variable is evaluated
  4. echo $a.", ".$b; //the output is 21, 21
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement