Fixing tabbing (spacing) of PDO connection.

Just so it looks as clean as it should.
This commit is contained in:
Corey Ballou
2014-10-23 07:32:03 -04:00
parent 905620d41e
commit be8f8fef92

View File

@@ -85,14 +85,14 @@ $string = mb_substr($string, 0, 15);
// See the PDO example in this document for more information
// Note the `set names utf8mb4` commmand!
$link = new \PDO(
'mysql:host=your-hostname;dbname=your-db;charset=utf8mb4',
'your-username',
'your-password',
array(
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
\PDO::ATTR_PERSISTENT => false
)
);
'mysql:host=your-hostname;dbname=your-db;charset=utf8mb4',
'your-username',
'your-password',
array(
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
\PDO::ATTR_PERSISTENT => false
)
);
// Store our transformed string as UTF-8 in our database
// Your DB and tables are in the utf8mb4 character set and collation, right?