mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-21 12:52:01 +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
|
// Connect to a database to store the transformed string
|
||||||
// See the PDO example in this document for more information
|
// See the PDO example in this document for more information
|
||||||
// Note the `set names utf8mb4` commmand!
|
// 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-username',
|
||||||
'your-password',
|
'your-password',
|
||||||
array(
|
array(
|
||||||
|
Reference in New Issue
Block a user