What is wrong with the PHP singleton pattern usage scenario?
A. There will be a large number of database operations in an application. For example, the behavior of connecting to a database through a database handle is a typical singleton pattern.
B. If there is a class in the system to control some configuration information globally, then the singleton pattern can be easily implemented.
C. Use singleton mode when you need curd to improve execution efficiency
D, Web configuration item read using singleton mode is not significant
Answer:D
What is wrong with the PHP singleton pattern usage scenario?
A. There will be a large number of database operations in an application. For example, the behavior of connecting to a database through a database handle is a typical singleton pattern. B. If there is a class in the system to control some configuration information globally, then the singleton pattern can be easily implemented. C. Use singleton mode when you need curd to improve execution efficiency D, Web configuration item read using singleton mode is not significant