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)- A6% (3)
- B2% (1)
- C78% (42)
- D11% (6)
- E4% (2)
Community Discussion
No community discussion yet for this question.