PEAR_Config::mergeConfigFile() – Merges data into a config layer from a file


require_once 'PEAR/config.php';

bool PEAR_Config::mergeConfigFile ( string $file , bool $override = true , string $layer = 'user' )


Merges data into a config layer from a file. Does the same thing as readConfigFile(), except it does not replace all existing values in the config layer.


string $file

file to read from

boolean $override

whether to overwrite existing data

string $layer

config layer to insert data into ('user' or 'system')

Return value

bool - Returns TRUE on success, PEAR_Error on failure.


Possible PEAR_Error values
Error code Error value Meaning Solution


This function can not be called statically.

Tells whether a config layer exists (Previous) noRegistry (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.