<?php
class Curl
{
public $pdo = '';
public function __construct(){
//try抛出异常处理
try{
$this->pdo = new PDO("mysql:host=127.0.0.1;dbname=1604a",'root','root');
} catch (PDOException $e) {
echo $e->getMessage();
}
$mysqli = new Curl();
?>