Yaf_Session::next
PHP Manual
PHP Manual»Yaf_Session»Yaf_Session::next

Yaf_Session::next

(Yaf >=1.0.0)

Yaf_Session::next — Advance to next session entry

Açıklama

public function Yaf_Session::next(): void

Moves the internal iterator to the next session 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_Session::next() example

<?php
$session = Yaf_Session::getInstance();
$session->start();

$session->set("user_id", 42);
$session->set("lang", "en");

$session->rewind();
echo $session->key(), PHP_EOL;

$session->next();
echo $session->key(), PHP_EOL;
?>

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

user_id
lang

Ayrıca Bakınız

To Top