PDO vs MySQLi
Posted on 2015-01-14
I am currently in the process of starting a large PHP application, and I am wondering which is newer /more recommended, PDO or MySQLi? I find MySQLi easier, especially with its OO approach. Which is the newest and more professional?
As well, I keep reading that in PHP you do not have to destroy objects as it automatically does at the end of the script, is this true?
What about $result->free(); to close the recordset and $db->close() to close the db connection, $statement->close() to close the statement and free up memory.