Zend
200-550 · Question #88
200-550 Question #88: Real Exam Question with Answer & Explanation
The correct answer is B. Anonymous functions created within object context are always bound to that object C. Assigning closure to a property of an object binds it to that object. See the full explanation below for the reasoning.
Question
Which of the following statements about anonymous functions in PHP are NOT true? (Choose 2)
Options
- AAnonymous functions can be bound to objects
- BAnonymous functions created within object context are always bound to that object
- CAssigning closure to a property of an object binds it to that object
- DMethods bind() and bindTo() of the Closure object provide means to create closures with different
- EBinding defines the value of $this and the scope for a closure
Community Discussion
No community discussion yet for this question.