Q.
<?php
print "Hello world!<br>";
print "I'm about to learn PHP!";
?>
A.  

Hello world!
I’m about to learn PHP!

B.  

Hello world! I’m about to learn PHP!

C.  
Hello world!
I'm about to learn PHP!
D.  

Error

Similar Questions
1.

What will be the output of the following PHP code?

<?php
echo "Hello world </br> I am learning PHP";
?>
A.  

Hello world

B.  

Hello world I am learning PHP

C.  
Hello world
I am learning PHP
D.  

Error

2.

What will be the output of the following PHP code?

<?php
echo "Hello world <strong>I am learning PHP</strong>"
?>
A.  

Hello world

B.  

Hello world I am learning PHP

C.  
Hello world
I am learning PHP
D.  

Error

3.

What will be the output of the following PHP code?

<?php
echo "This", "was", "a", "bad", "idea";
?>
A.  

This, was, a, bad, idea

B.  

This was a bad idea

C.  

Thiswasabadidea

D.  

Error

4.

What will be the output of the following PHP code?

<?php
echo "This"."was"."a"."bad"."idea";
?>
A.  

This, was, a, bad, idea

B.  

This was a bad idea

C.  

Thiswasabadidea

D.  

Error

5.

What will be the output of the following PHP code?

<?php
echo "This","was"|"a","bad"."idea";
?>
A.  

Thiswasabadidea

B.  

Thiswasbadidea

C.  

Thiswas a badidea

D.  

Thiswas abadidea

6.

What will be the output of the following PHP code?

<?php
$one = "Hello";
$two = "World";
echo $one, $two;
?>
A.  

Hello World

B.  

Hello

C.  

World

D.  

HelloWorld

7.

What will be the output of the following PHP code?

<?php
$one = "Hello";
$two = "World";
echo "$one$two";
?>
A.  

HelloWorld

B.  

$one$two

C.  

Hello

D.  

Error

8.

What will be the output of the following PHP code?

<?php
$one = "Hello";
$two = "World";
echo "$one"+"$two";
?>
A.  

HelloWorld

B.  

Hello+World

C.  

0

D.  

Error

9.

What will be the output of the following PHP code?

<?php
echo "This is <i>India</i>";
?>
A.  

This is India

B.  

This is India

C.  

This is

D.  

Error

10.

What will be the output of the following PHP code?

<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "My car is a {$cars[0]}";
?>
A.  

My car is a Volvo

B.  

My car is a BMW

C.  

My car is a Toyota

D.  

Error

PHP TOPICS