How can one verify if the correct extensions (php_mysql.dll and mysql) are properly installed and loaded in PHP configuration?

To verify if the correct extensions (php_mysql.dll and mysql) are properly installed and loaded in PHP configuration, you can create a PHP script that checks for the availability of these extensions using the `extension_loaded()` function. This function returns true if the specified extension is loaded and available in the PHP configuration.

<?php
if (extension_loaded('mysqli') && extension_loaded('mysql')) {
    echo 'MySQL extensions are properly installed and loaded.';
} else {
    echo 'MySQL extensions are not properly installed or loaded.';
}
?>