(Yaf >=1.0.0)
Yaf_Config_Simple::toArray — Export configuration as array
Returns the entire configuration as a plain PHP array.
This function has no parameters.
The configuration data as an array.
Example #1 Yaf_Config_Simple::toArray() example
<?php
$config = new Yaf_Config_Simple([
'application' => ['name' => 'MyApp'],
'database' => ['host' => 'localhost', 'port' => 3306],
]);
print_r($config->toArray());
?>The above example will output something similar to:
Array
(
[application] => Array
(
[name] => MyApp
)
[database] => Array
(
[host] => localhost
[port] => 3306
)
)