the argument that PDO makes switching between different types of databases "easy" is foolish: it's not easy, and it can't be made easy.
PDO's advantages are features like prepared statements, transactions, etc.. The mysqli extension supports these features as well - you should learn one or the other (or both!).
(If you're asking if you could stick with the mysql_*() functions, the answer is a resounding "No!")
Why I should learn PDO ?
I think it enable me access to different types of databases ?
If I use only MySQL , Should I learn it ?
the argument that PDO makes switching between different types of databases "easy" is foolish: it's not easy, and it can't be made easy.
PDO's advantages are features like prepared statements, transactions, etc.. The mysqli extension supports these features as well - you should learn one or the other (or both!).
(If you're asking if you could stick with the
mysql_*()functions, the answer is a resounding "No!")