<?php
/**
* Assume /etc/myapp/application.ini contains:
* [common]
* application.name = "MyApp"
* database.host = "localhost"
* database.port = 3306
*/
$config = new Yaf_Config_Ini('/etc/myapp/application.ini', 'common');
echo $config['application.name'], "\n"; // dot notation, as in get()
echo $config['database']['host'], "\n"; // nested access
var_dump($config['cache.enable']); // missing key
?>
The above example will output
something similar to: