Examveda
Examveda

What will be the output of the following PHP code ?
<?php
echo "Hello World"
?>

A. Hello world

B. Hello world in italics

C. Nothing

D. Error

Answer: Option B

Solution(By Examveda Team)

You can use tags like italics, bold etc. inside php script.

This Question Belongs to PHP >> Operators And Expressions In Php

Join The Discussion

Comments ( 3 )

  1. Ayussh Srivastav
    Ayussh Srivastav :
    3 years ago

    for this code opt B is correct, in the above code ------ tags are missing

  2. Chiru Chirag
    Chiru Chirag :
    4 years ago

    It's error because the semicolon is missing

  3. Andrew Lviv
    Andrew Lviv :
    4 years ago

    Error

Related Questions on Operators and Expressions in php