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)- A4% (1)
- B74% (20)
- C7% (2)
- D15% (4)
Community Discussion
No community discussion yet for this question.