Q. Which PHP function returns the last inserted ID in a PDO connection?
β
Correct Answer: (C)
$pdo->lastInsertId()
Explanation: The lastInsertId() method returns the ID of the last inserted row.