PHP 8.6.0 Beta 3 is available for testing

Yaf_Config_Simple::rewind

(Yaf >=1.0.0)

Yaf_Config_Simple::rewindReset iterator to first entry

Descrizione

public function Yaf_Config_Simple::rewind(): void

Rewinds the internal iterator to the first configuration entry.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

No value is returned.

Esempi

Example #1 Yaf_Config_Simple::rewind() example

<?php
$config = new Yaf_Config_Simple([
    'application' => ['name' => 'MyApp'],
    'database'    => ['host' => 'localhost'],
]);

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

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

Il precedente esempio visualizzerà qualcosa simile a:

database
application

Vedere anche:

add a note

User Contributed Notes

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