| Num | id | First name | Last name | |
| 0 | 4 | Jean | Tartampion | jeantartampion@aryes.fr |
| 1 | 1 | Romain | Bourgin | bourginromain42@gmail.com |
| 2 | 2 | Romain | Deux | romaindeux@aryes.fr |
| 3 | 3 | Romain | Trois | romaintrois@aryes.fr |
Example written by Romain Bourgin romain@bourgin.net on december 2014.
You are browsing a page rendered with an example package. This package is to show how to connect to a database through PDO. But not only that.
This package shows how to use patterns to code it.
First, the dependency injection pattern is used to encapsulate PDO within DBDialog class.
Second, the factory pattern is used to create functional objects.
Read the source code files to learn more.