Unlike PDO, MySQLi driver is exclusive PHP driver for MySQL database. If you have any plan to shift your database from MySQL to other database then you have to change several code ( matching functions ) to match with your new database. In such case it is better to use PDO as data handling functions are mostly common and we just have to change the connection string.