National_Instruments
200-500 · Question #161
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
(53 responses)- A2% (1)
- B9% (5)
- C83% (44)
- D4% (2)
- E2% (1)
Community Discussion
No community discussion yet for this question.