PHP 8.5.10 Released!

Yaf_Config_Ini::rewind

(Yaf >=1.0.0)

Yaf_Config_Ini::rewindReset iterator to first entry

Açıklama

public function Yaf_Config_Ini::rewind(): void

Rewinds the internal iterator to the first 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_Ini::rewind() 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->next();
echo $config->key(), "\n";

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

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

version
application

Ayrıca Bakınız

add a note

User Contributed Notes

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