<?php
$config = new Yaf_Config_Simple([
'application' => ['name' => 'MyApp'],
'database' => ['host' => 'localhost'],
]);
$config->rewind();
var_dump($config->valid());
$config->next();
var_dump($config->valid());
$config->next(); // past the last entry
var_dump($config->valid());
?>
The above example will output
something similar to:
bool(true)
bool(true)
bool(false)