What is wrong with the PHP singleton mode operation description?
A. Singleton mode. The first instance will be created and executed after execution.
B. Need a static member variable that holds the only instance of the class
C, constructor and clone functions must be declared private
D. You must provide a public static method to access this instance
Answer:A
What is wrong with the PHP singleton mode operation description?
A. Singleton mode. The first instance will be created and executed after execution. B. Need a static member variable that holds the only instance of the class C, constructor and clone functions must be declared private D. You must provide a public static method to access this instance