SplFileObject::next

(PHP 5 >= 5.1.0)

SplFileObject::nextRead next line

Описание

public void SplFileObject::next ( void )

Moves ahead to the next line in the file.

Список параметров

У этой функции нет параметров.

Возвращаемые значения

Эта функция не возвращает значения после выполнения.

Примеры

Пример #1 SplFileObject::next() example

<?php
// Read through file line by line
$file = new SplFileObject("misc.txt");
while (!
$file->eof()) {
    echo 
$file->current();
    
$file->next();
}
?>

Смотрите также


Участник рейтинга Тэглайн 2010