PDO is a database abstraction layer in PHP. It allows you to switch between different database types with little or no code changes because none of the calls to it is API are database specific except for the initial database connection call that specifies which type of database you are using.