What function can be used to read a config file in PHP?

To read a config file in PHP, you can use the `parse_ini_file()` function. This function reads the contents of an INI file and returns an associative array containing the configuration settings.

$config = parse_ini_file('config.ini');
print_r($config);