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