Skip to content

Instantly share code, notes, and snippets.

@puiutucutu
Created December 30, 2017 05:48
Show Gist options
  • Save puiutucutu/38fe66c4c4a428747e68e507a33eb549 to your computer and use it in GitHub Desktop.
Save puiutucutu/38fe66c4c4a428747e68e507a33eb549 to your computer and use it in GitHub Desktop.
PDO default settings
<?php
$options = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_STRINGIFY_FETCHES => false,
PDO::ATTR_EMULATE_PREPARES => false,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment