11
What will be the output of the following code?
<?php
$foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>
Answer & Solution
Answer: Option
C
Solution:
The $bar = &$foo; line will reference $foo via $bar.