Zend
ZF-100-500 · Question #23
Which of the following is an example of a database c onnection that needs to be created once at the beginning of a script and then used throughout its code?
The correct answer is D. Singleton. Zend ZF-100-500 Exam
Shells, Scripting and Data Management
Question
Which of the following is an example of a database c onnection that needs to be created once at the beginning of a script and then used throughout its code?
Options
- AModel-view-controller
- BFactory pattern
- CActiveRecord
- DSingleton
How the community answered
(30 responses)- A7% (2)
- B3% (1)
- C10% (3)
- D80% (24)
Explanation
Zend ZF-100-500 Exam
Topics
#Singleton pattern#design patterns#database connections#PHP
Community Discussion
No community discussion yet for this question.