This method modifies the default configuration values for the current class instance.
setConfig(string $key, mixed $value): bool setConfig(array $key): bool
key : Configuration key in key/value pair or an array containing all configuration options to modify.
value : Configuration value in key/value pair. If using array in 'key' parameter then value will be ignored. (optional)
(bool) : Returns true on success and false if config key doesn't exist.
true
false
$cphp->setConfig('key', 'value'); $cphp->setConfig(['key' => 'string', 'integer' => 1]);
Home | Configuration
There was an error while loading. Please reload this page.