What are some common locations for the php.ini file in different PHP installations?

The php.ini file is a configuration file for PHP that contains various settings for the PHP interpreter. The location of the php.ini file can vary depending on how PHP is installed on a system. Common locations for the php.ini file include /etc/php/7.4/apache2/php.ini for Apache installations, /etc/php/7.4/cli/php.ini for command line PHP, and C:\php\php.ini for Windows installations.

// Example code to check for the location of the php.ini file
echo php_ini_loaded_file();