PDO 长连接,及属性查看方法

true, )); $attributes = array( "AUTOCOMMIT", "ERRMODE", "CASE", "CLIENT_VERSION", "CONNECTION_STATUS", "ORACLE_NULLS", "PERSISTENT", "PREFETCH", "SERVER_INFO", "SERVER_VERSION", "TIMEOUT" ); foreach ($attributes as $val) { echo "PDO::ATTR_$val: "; var_dump($pdo->getAttribute(constant("PDO::ATTR_$val"))); echo "\n
"; } ?>

你可能感兴趣的:(Mobile,Oracle,MySQL,PHP)