<?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');
// Read-only: the assignment always fails, and a warning is emitted
var_dump($config->set('database.host', '192.0.2.10'));
echo $config->get('database.host'), "\n";
?>
The above example will output
something similar to: