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