http://net.tutsplus.com/tutorics/php/pdo-vs-mysqli-what-should-you-use/"rel=“noreferr”/PDO vs. MySQLi:你应该使用什么?
Both PDO and MySQLi offer an object-oriented API, but MySQLi also
offers a procedural API – which makes it easier for newcomers to
understand. If you are familiar with the native PHP MySQL driver, you
will find migration to the procedural MySQLi interface much easier. On
the other hand, once you master PDO, you can use it with any database
you desire!
"https://i.sstatic.net/flfZa.png" alt="摘要"/ >
"https://i.sstatic.net/480Zj.png" alt="数据支持"/>
Ultimately, PDO wins this battle with ease. With support for twelve
different database drivers (eighteen different databases!) and named
parameters, we can ignore the small performance loss, and get used to
its API. From a security standpoint, both of them are safe as long as
the developer uses them the way they are supposed to be used.
‘ enger_ @%em> 所以, 如果您仍然和 MySQLi 合作, 也许该是改变的时候了!
http://net.tutsplus.com/tutorics/php/pdo-vs-mysqli-what-should-you-use/"rel="noreferrer"/PDO vs. MySQLi:你应该使用什么?
希望这能帮上忙。