What will be the output of the following code?
  $foo = 'Bob

Home | Discussion Forum

Free Online Test

Taiyari24Hour

What will be the output of the following code?

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



View More Related Question

1) Which of the below symbols is a newline character?

2) What will be the output of the following PHP code?

$color = "maroon";
$var = $color[2];
echo "$var";

3) Which of following variables can be assigned a value to it?

  1. $3hello
  2. $_hello
  3. $this
  4. $This

4) Which of the following php statement/statements will store 111 in variable num?

  1. int $num = 111;
  2. int mum = 111;
  3. $num = 111;
  4. 111 = $num;

5) What will be the output of the following code?

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

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.