nerdexam
Zend

200-530 · Question #91

Which of the following did not result in an output error in PHP 4 but does in PHP 5?

The correct answer is B. Assigning a new object instance to $this in a constructor. See the full explanation below for the reasoning.

Question

Which of the following did not result in an output error in PHP 4 but does in PHP 5?

Options

  • AUsing 'var' as an access modifier.
  • BAssigning a new object instance to $this in a constructor.
  • CPassing an object by-reference.
  • DPassing an object by-value.

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    74% (20)
  • C
    7% (2)
  • D
    15% (4)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice