Skip to content

Commit f0343a8

Browse files
authored
Update 21_pdo.md
1 parent cb1f6a5 commit f0343a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

implement-approach/21_pdo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ Nachfolgend wird die Verbindung zum [DBMS](http://de.wikipedia.org/w/index.php?t
4444
$dsn = 'mysql:dbname=test;host=localhost;charset=utf8';
4545
$user = 'root';
4646
$pass = '';
47-
$options = array(
47+
$options = [
4848
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
4949
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,
5050
PDO::ATTR_EMULATE_PREPARES => false
51-
);
51+
];
5252
$pdo = new PDO($dsn, $user, $pass, $options);
5353
~~~
5454

0 commit comments

Comments
 (0)