How can the phpinfo() function be used to verify the presence of PDO drivers like sqlite in a PHP installation?

To verify the presence of PDO drivers like sqlite in a PHP installation, you can use the phpinfo() function to display detailed information about the PHP environment. Look for the PDO section in the phpinfo() output to see if the sqlite driver is listed. If it is not listed, you may need to enable the PDO sqlite extension in your PHP configuration.

<?php
// Display detailed PHP information
phpinfo();
?>