Home
Earn $100 Online Daily. Work From Home. Click Here

What is the correct answer?

4

What will be the output of the following code?



<?php
$foo = 'Bob';
$bar = &$foo;
$bar = "My name is $bar";
echo $bar;
echo $foo;
?>

A.

Error


B.

My name is BobBob


C.

My name is BobMy name is Bob


D.

My name is Bob Bob


Related Questions

What will be the output of the following PHP code ? <?php $color1 =… What is the default time(in seconds) for which session data is considered… How many ways can a session data be stored? What will be the output of the following PHP code? <?php $a = array(A,… What will be the output of the following PHP code ? <?php $i = 0;while… If the format is F then which one of the following will be returned? What will be the output of the following PHP code? <?php $a = array(red,… What will be the output of the following PHP code ? <?php $color =… What will be the output of the following PHP code? <?php $age = array(Peter=>35,… What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME}… Which of following variables can be assigned a value to it?i) $3helloii)… What will be the output of the following PHP code ? <?php define(GREETING,… What will be the output of the following PHP code ? <?php define(__LINE__,… PHP files have a default file extension of.. Which function displays the web pages most recent modification date? What will be the output of the following PHP code? <?php $fname = array(Peter,… What will be the output of the following PHP code ? <?php $i = 0;while… What will be the output of the following PHP code ? <?php class myObject… What will be the output of the following PHP code ? <?php $i = 5;while… What will be the output of the following PHP code ? <?php $color1 =… What will be the output of the following PHP code ? <?php $color1 =… What will be the output of the following PHP code? If say date is 22/06/2013.… What will be the output of the following PHP code ? <?php define(NEW_GOOD_NAME_CONSTANT,… What will be the output of the following PHP code? <?php $a1 = array(a=>red,… What will be the output of the following PHP code ? <?php $i = 0;while… What will be the output of the following PHP code ? <?php $i = 0;while(++$i… Which directive determines how the session information will be stored? What will be the output of the following PHP code ? <?php class Constants{… What will be the output of the following PHP code ? <?php $color1 =… What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii)…