nerdexam
Zend

200-530 · Question #176

Which of the following function signatures is correct if you want to have classes automatically loaded?

The correct answer is C. function __autoload($class_name). See the full explanation below for the reasoning.

Question

Which of the following function signatures is correct if you want to have classes automatically loaded?

Options

  • Afunction autoload($class_name)
  • Bfunction __autoload($class_name, $file)
  • Cfunction __autoload($class_name)
  • Dfunction _autoload($class_name)
  • Efunction autoload($class_name, $file)

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    78% (42)
  • D
    11% (6)
  • E
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice