(Yaf >=1.0.0)
Yaf_Config_Simple::count — Count configuration entries
Returns the number of top-level configuration entries.
This function has no parameters.
The number of top-level entries as an integer.
Example #1 Yaf_Config_Simple::count() example
<?php
$config = new Yaf_Config_Simple([
'application' => ['name' => 'MyApp'],
'database' => ['host' => 'localhost'],
]);
// Only the top-level entries ("application" and "database") are counted
var_dump(count($config));
var_dump($config->count());
?>The above example will output something similar to:
int(2) int(2)