<?php
$config = new Yaf_Config_Simple([
'application' => ['name' => 'MyApp'],
'database' => ['host' => 'localhost'],
]);
print_r($config->toArray());
?>
The above example will output
something similar to:
Array
(
[application] => Array
(
[name] => MyApp
)
[database] => Array
(
[host] => localhost
)
)