<?php
$config = new Yaf_Config_Simple([
'application' => ['name' => 'MyApp'],
'database' => ['host' => 'localhost'],
]);
// Array values are wrapped in a Yaf_Config_Simple object
echo $config['application']->name, "\n";
echo $config['database']['host'], "\n";
var_dump($config['missing']);
?>
The above example will output
something similar to: