PEAR_Config::toDefault() – Revert value of config key to the system-defined one


require_once 'PEAR/config.php';

bool PEAR_Config::toDefault ( string $key )


Unset the user-defined value of a config key, reverting the value to the system-defined one.


string $key

config key

Return value

bool - Returns TRUE on success, FALSE on failure.


This function can not be called statically.

Stores configuration data in a layer (Previous) Determine whether any configuration files have been detected, and whether a registry object can be retrieved from this configuration. (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.