Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $a = '1'; // $a is the string '1'
- $b = &$a; // $b is assigned to $a by reference, so they point to the same content '1'
- $b = "2$b"; // $a and $b are now '21' because double quotes were used, so the variable is evaluated
- echo $a.", ".$b; //the output is 21, 21
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement