Yaf_Config_Simple::next
PHP Manual
PHP Manual»Yaf_Config_Simple»Yaf_Config_Simple::next

Yaf_Config_Simple::next

(Yaf >=1.0.0)

Yaf_Config_Simple::next — Advance to next entry

Açıklama

public function Yaf_Config_Simple::next(): void

Moves the internal iterator to the next configuration entry.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

No value is returned.

Örnekler

Örnek 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());
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

application
database
bool(false)

Ayrıca Bakınız

To Top