|
|
(Next) Config_Container::toString |
||||
| |
|||||
|
|||||
array Config_Container::toArray (
( void
)
このメソッドは、Config ツリーを配列形式で返します。その書式は
<?php
$section[directive][index] = value
?>
Config_Container ツリーを配列形式で返します。
This function can not be called statically.
toArray()() の使用例
<?php
$attributes = array('id' => 'db', 'language' => 'en');
$section =& new Config_Container('section', 'main', null, $attributes);
$section->createDirective('authentication', 'one', array('type' => 'mysql'));
$section->createDirective('authentication', 'two', array('type' => 'oracle'));
$section->createDirective('permission', 'group');
var_dump($section->toArray());
?>
同名の属性やディレクティブが含まれる結果の配列
|
|
(Next) Config_Container::toString |
||||||||
| |
|||||||||
|
|||||||||