Examveda

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

A. Hello world

B. echo “Hello world”

C. echo Hello world

D. Error

Answer: Option D

Solution (By Examveda Team)

It would have printed echo “Hello world” if the statement was echo “echo ”Hello World””;.

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

Join The Discussion

Comments (1)

  1. AMAL M
    AMAL M:
    5 years ago

    Then whats wrong in your comment and answer both are same itseems

Related Questions on Operators and Expressions in php