add backslashes to "user contributed note" ?
| From: | Hans Henrik Bergan | Date: | Sun, 13 Oct 2019 22:34:24 +0000 |
| Subject: | add backslashes to "user contributed note" ? | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969387365@lists.php.net to get a copy of this message | ||
in https://www.php.net/manual/en/ref.pdo-mysql.connection.php
there is a
note from "divinity76 at gmail dot com" ,
can someone add backslashes to the code? like
<?php
$db = new \PDO('mysql:host=localhost;dbname=testdb;charset=utf8mb4',
'username', 'password', array(
\PDO::ATTR_EMULATE_PREPARES => false,
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
));