<?php
//1.连接数据库
$pdo = new PDO('mysql:host=127.0.0.1;dbname=php;charset=utf8','root','root');
//2.操作数据库(CURD)
//3.关闭数据库
$pdo = null;