Vidyalelo
PHP · Q85

Object Oriented Concept

Programming · PHP · question 85

Q85

How many times can you define _______ autoload in a process?

A.
once
Answer
B.
twice
C.
thrice
D.
as many times as needed

Answer: Option A

Solution

Answer: Option A
Solution:
__autoload is a powerful tool, but it does have some limitations. In particular, you can only define it once in a process. If you need to change your autoload function dynamically you should look at the spl_autoload_register function, which supports that functionality.