PHP Manual -------------------------------------------------------------------------------- PHP 手册 by: Mehdi Achour Friedhelm Betz Antony Dovgal Nuno Lopes Hannes Magnusson Georg Richter Damien Seguy Jakub Vrana 其他贡献者 2013-02-28 Edited By: Philip Ol
本文实例讲述了php封装的pdo数据库操作工具类与用法。分享给大家供大家参考,具体如下:
<?php
header(Content-Type:text/html;charset=utf-8);
class PdoMysql{
public static $config = array();//设置连接参数,配置信息
public static $link = null;//保存连接标识符
public static $pconnect = false;//是否开启长连接