Exam 200-710 All QuestionsBrowse all questions from this exam
Question 4

What is the output of this code?

    Correct Answer: B

    The code uses nowdoc syntax, which means the content inside TEXT will be treated as a plain string, and variables will not be parsed. Thus, the value of `$world` will not be interpolated into the string, and `hello $world` will be output literally.

Discussion
IamthebestboyOption: C

The answer is C, because as you can see, TEXT; has space from left side, and it gives a Parse Error

nicky91294Option: B

Answer is B

JeffryOption: C

Whoops! It's C explanation: $world = `world'; instead of $world = 'world';

JeffryOption: B

Answer should be B, has been tested.