$attributes = array('id' => 'db', 'language' => 'en');
$section =& new Config_Container('section', 'main', null, $attributes);
$section->createDirective('authentication', 'test', array('type' => 'mysql',
'host' => 'localhost'));
echo $section->toString('phparray');
echo $section->toString('xml'); |