--TEST-- PDO Common: PDO::FETCH_BOTH --EXTENSIONS-- pdo --SKIPIF-- --FILE-- exec('CREATE TABLE test003(id int NOT NULL PRIMARY KEY, val VARCHAR(10))'); $db->exec("INSERT INTO test003 VALUES(1, 'A')"); $db->exec("INSERT INTO test003 VALUES(2, 'B')"); $db->exec("INSERT INTO test003 VALUES(3, 'C')"); $stmt = $db->prepare('SELECT * from test003'); $stmt->execute(); var_dump($stmt->fetchAll(PDO::FETCH_BOTH)); ?> --CLEAN-- --EXPECT-- array(3) { [0]=> array(4) { ["id"]=> string(1) "1" [0]=> string(1) "1" ["val"]=> string(1) "A" [1]=> string(1) "A" } [1]=> array(4) { ["id"]=> string(1) "2" [0]=> string(1) "2" ["val"]=> string(1) "B" [1]=> string(1) "B" } [2]=> array(4) { ["id"]=> string(1) "3" [0]=> string(1) "3" ["val"]=> string(1) "C" [1]=> string(1) "C" } }