Let's look at both of these extensions.
PDO
PDO is a neutral database. You only need to learn one API for working with dozens of databases
So, if you decide to switch to another database, the only thing you would change is a DSN (data source name).
Name and '?' Support placeholders for prepared statements.
Drupal uses PDO.
Mysqli
Mysqli, on the other hand, is specifically designed for Mysql databases and is recommended by Mysql. Mysqli works with the Mysql and MariaDB databases.
Support only '?' placeholders for prepared statements.
Joomla uses Mysqli
Conclusion
There are many conflicting arguments that the Mysqli or PDO weather is faster. Both Mysqli and PDO use the same basic drivers to access the database, making performance comparisons impossible.
Thus, there is no clear winner when working with Mysqli or PDO. But let me say that you use Mysqli, and then you want to use a different database, this will be a difficult transition.
The main power of PDOs over Mysqli is name placeholders for prepared statements, which is why I chose PDOs over Mysqli.
source share