nerdexam
Zend

200-710 · Question #135

Which of the following statements is NOT correct?

The correct answer is A. Only methods can have type hints. See the full explanation below for the reasoning.

Functions

Question

Which of the following statements is NOT correct?

Options

  • AOnly methods can have type hints
  • BTypehints can be optional
  • CTypehints can be references

How the community answered

(60 responses)
  • A
    80% (48)
  • B
    7% (4)
  • C
    13% (8)

Topics

#type hints#optional typehints#reference typehints#methods vs functions

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice