Discussion :: PHP - CS
-
What will be the output of the following code?
<?php
$foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>
Answer : Option C
Explanation :
The $bar = &$foo; line will reference $foo via $bar.
Be The First To Comment