PHP 8.6.0 Beta 3 is available for testing

Yaf_Config_Simple::next

(Yaf >=1.0.0)

Yaf_Config_Simple::nextAdvance 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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top