(Yaf >=1.0.0)
Yaf_Config_Simple::next — Advance to next entry
Moves the internal iterator to the next configuration entry.
У цієї функції немає параметрів.
No value is returned.
Приклад #1 Yaf_Config_Simple::next() example
<?php
$config = new Yaf_Config_Simple([
'application' => ['name' => 'MyApp'],
'database' => ['host' => 'localhost'],
]);
$config->rewind();
echo $config->key(), "\n";
$config->next();
echo $config->key(), "\n";
$config->next(); // past the last entry
var_dump($config->valid());
?>Поданий вище приклад виведе щось схоже на:
application database bool(false)