From be8f8fef92989de248fa5a221228b3d9c6293489 Mon Sep 17 00:00:00 2001 From: Corey Ballou Date: Thu, 23 Oct 2014 07:32:03 -0400 Subject: [PATCH] Fixing tabbing (spacing) of PDO connection. Just so it looks as clean as it should. --- _posts/05-05-01-PHP-and-UTF8.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/_posts/05-05-01-PHP-and-UTF8.md b/_posts/05-05-01-PHP-and-UTF8.md index 5476057..4407348 100644 --- a/_posts/05-05-01-PHP-and-UTF8.md +++ b/_posts/05-05-01-PHP-and-UTF8.md @@ -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?