PHP 8.6.0 Beta 3 is available for testing

Yaf_Config_Ini::next

(Yaf >=1.0.0)

Yaf_Config_Ini::nextAdvance to next entry

Beschreibung

public function Yaf_Config_Ini::next(): void

Moves the internal iterator to the next configuration entry.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

No value is returned.

Beispiele

Beispiel #1 Yaf_Config_Ini::next() example

<?php
/**
 * Assume /etc/myapp/application.ini contains:
 * [common]
 * application.name = "MyApp"
 * version          = "1.0"
 */
$config = new Yaf_Config_Ini('/etc/myapp/application.ini', 'common');

$config->rewind();
echo $config->key(), "\n";

$config->next();
echo $config->key(), "\n";

$config->next(); // past the last entry
var_dump($config->valid());
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

application
version
bool(false)

Siehe auch

add a note

User Contributed Notes

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