--TEST-- Test PDOStatement::columnCount if the number of the columns in a result set. --SKIPIF-- --FILE-- prepare($sql); $stmt->execute(); print_r("Existing table contains: " . $stmt->columnCount() . "\n"); } catch (PDOException $e) { var_dump($e); } ?> --EXPECT-- Existing table contains: 31