MCQ
Single Best Answer
Not Set
QWhat will be the output of the following code?
< ?php
$foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>
ID: #2356
PHP Basic MCQ
1,826 views
Question Info
#2356Q ID
Not SetDifficulty
PHP Basic MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
The $bar = &$foo; line will reference $foo via $bar.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic