Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PDO Settings via Array: PDO settings are passed as an array directly in the PDO constructor instead of setAttribute. This makes for shorter, cleaner writing. Exit Function Usage: exit is used instead of die, reflecting a more modern PHP usage. Default Retrieval Mode: PDO::FETCH_OBJ is set as the default retrieval mode so data will be returned as object. This makes your code a little cleaner and makes data manipulation easier (optional).
- Loading branch information