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) What will be the output of the following php code?

 $num  = 1;
$num1 = 2;
print $num . "+". $num1;
?>

2) Which version of PHP introduced Try/catch Exception?

3) We can use _________ to comment a single line?

  1. /?
  2. //
  3. #
  4. /* */

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

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

5) A PHP script should start with ___ and end with ___:

UP Gk Online Test

taiyari24hour.com

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