-
What will be the output of the following PHP code ?
<?php
print_r "Hello Interview Mania"
?>
-
- Hello Interview Mania
- Missing semicolon error
- Error
- Nothing
- None of these
Correct Option: C
The statement should be print("Hello Interview Mania") 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.