Q:

What will be the output of the following code?

belongs to collection: BASICS OF PHP MCQ

0

What will be the output of the following code?

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

  1. My name
  2. My name is BobMy
  3. My name is BobMy name is Bob
  4. My name is BobMy name is BobMy name is BobMy name is BobMy name is BobMy name is Bob

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).My name is BobMy name is Bob

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

BASICS OF PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of the following PHP statements will output ... >>
<< Which of following variables can be assigned a val...