mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-21 04:41:40 +02:00
bump first argument down a line so the example is PSR-2
This commit is contained in:
@@ -56,7 +56,8 @@ $string = mb_substr($string, 0, 15);
|
||||
// Connect to a database to store the transformed string
|
||||
// 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',
|
||||
$link = new \PDO(
|
||||
'mysql:host=your-hostname;dbname=your-db;charset=utf8mb4',
|
||||
'your-username',
|
||||
'your-password',
|
||||
array(
|
||||
|
Reference in New Issue
Block a user