Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Yaf_Config_Simple::keyYaf_Config_Simple::offsetExists>
^Yaf_Config_SimpleLast updated: Mon, 26 Oct 2026

Yaf_Config_Simple::next

(Yaf >=1.0.0)

Yaf_Config_Simple::next — Advance to next entry

Description

public function Yaf_Config_Simple::next(): void

Moves the internal iterator to the next configuration entry.

Parameters

This function has no parameters.

Return Values

No value is returned.

Examples

Example #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());
?>

The above example will output something similar to:

application
database
bool(false)

See Also


<Yaf_Config_Simple::keyYaf_Config_Simple::offsetExists>
^Yaf_Config_SimpleLast updated: Mon, 26 Oct 2026