Zend
200-550 · Question #21
What is the output of the following code? $f = function () { return "hello"; }; echo gettype($f);
The correct answer is C. object. See the full explanation below for the reasoning.
Question
What is the output of the following code? $f = function () { return "hello"; }; echo gettype($f);
Options
- Ahello
- Bstring
- Cobject
- Dfunction
How the community answered
(20 responses)- A5% (1)
- B5% (1)
- C80% (16)
- D10% (2)
Community Discussion
No community discussion yet for this question.