downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SplFileObject::rewind> <SplFileObject::key
[edit] Last updated: Fri, 07 Jun 2013

view this page in

SplFileObject::next

(PHP 5 >= 5.1.0)

SplFileObject::nextЧитает следующую строку

Описание

public void SplFileObject::next ( void )

Перемещается вперед к следующей строке в файле.

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

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

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

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

Примеры

Пример #1 Пример использования SplFileObject::next()

<?php
// Читаем файл построчно
$file = new SplFileObject("misc.txt");
while (!
$file->eof()) {
    echo 
$file->current();
    
$file->next();
}
?>

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



add a note add a note User Contributed Notes SplFileObject::next - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites