Re: add backslashes to "user contributed note" ?
"G. P. B." <[email protected]>
| Newsgroups | gmane.comp.php.documentation.general |
|---|---|
| Message-ID | <CAFPFaM+jhqdgvXC5M4p0eOOxGwEmG_ouqWucOpLb-+k9bnHPWw@mail.gmail.com> |
On Mon, 14 Oct 2019 at 00:34, Hans Henrik Bergan <[email protected]> wrote: > 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 > )); > >