nerdexam
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)
  • A
    5% (1)
  • B
    5% (1)
  • C
    80% (16)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice