PHP

PHP

Echo has 7 Questions
What will be the output of the following PHP code ?
  1. <?php
  2. echo "Hello world </br> I am learning PHP";
  3. ?>

Hello world

Hello world  I am learning PHP

Hello world

I am learning PHP

Error
What will be the output of the following PHP code ?
  1. <?php
  2. echo "Hello world <strong>I am learning PHP</strong>"
  3. ?>

Hello world
Hello world I am learning PHP

Hello world

I am learning PHP

Error
What will be the output of the following PHP code ?
  1. <?php
  2. echo "This", "was", "a", "bad", "idea";
  3. ?>

This, was, a, bad, idea
This was a bad idea
Thiswasabadidea
Error
What will be the output of the following PHP code ?
  1. <?php
  2. echo "This"."was"."a"."bad"."idea";
  3. ?>

This, was, a, bad, idea
This was a bad idea
Thiswasabadidea
Error
What will be the output of the following PHP code ?
  1. <?php
  2. echo "This","was"|"a","bad"."idea";
  3. ?>

Thiswasabadidea
Thiswasbadidea
Thiswas a badidea
Thiswas abadidea
What will be the output of the following PHP code ?
  1. <?php
  2. $one = "Hello";
  3. $two = "World";
  4. echo $one, $two;
  5. ?>

Hello World
Hello
World
HelloWorld
What will be the output of the following PHP code ?
  1. <?php
  2. $cars = array("Volvo", "BMW", "Toyota");
  3. echo "My car is a {$cars[0]}";
  4. ?>

My car is a Volvo
My car is a BMW
My car is a Toyota
Error