<?php
$config = new Yaf_Config_Simple([
'cache' => ['enable' => true],
'env' => 'development',
]);
unset($config['cache']);
var_dump(isset($config['cache']));
// Read-only configurations cannot be modified: a warning is emitted
$frozen = new Yaf_Config_Simple(['env' => 'development'], true);
unset($frozen['env']);
var_dump(isset($frozen['env']));
?>
The above example will output
something similar to: