Discussion Forum : Operators And Expressions In Php
Question - What will be the output of the following PHP code ?
Options:
A .  Error
B .  Hello World
C .  Nothing
D .  Missing semicolon error
Answer: Option A
The statement should be print_r(‘Hello World’) to print Hello world. Also if there is only one line then there is no requirement of a semicolon, but it is better to use it.

Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *