Question: why pdo is used in php?
Answer: The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. ... PDO provides a data-access abstraction layer, which means that, regardless of which database you're using, you use the same functions to issue queries and fetch data.