What will be the output of the following PHP code ?
<?php
echo "Hello World"
?>
<?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.Join The Discussion
Comments ( 3 )
Related Questions on Operators and Expressions in php
What will be the output of the following PHP code ?
<?php
"Hello World"
?>
A. Error
B. Hello World
C. Nothing
D. Missing semicolon error
What will be the output of the following PHP code ?
<?php
print_r "Hello world"
?>
A. Error
B. Hello World
C. Nothing
D. Missing semicolon error
A. redredred
B. redred
C. red
D. Error
A. # Hello world
B. Hello world# Hello world
C. Hello world
D. Error
for this code opt B is correct, in the above code ------ tags are missing
It's error because the semicolon is missing
Error