How can you check which php.ini file PHP is using if there are multiple php.ini files present?

When there are multiple php.ini files present, PHP may be using a specific php.ini file that you are not aware of. To check which php.ini file PHP is using, you can create a PHP script that outputs the loaded configuration file path using the `php_ini_loaded_file()` function.

<?php
$loaded_ini_file = php_ini_loaded_file();
echo "Loaded php.ini file: " . $loaded_ini_file;
?>