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

search for in the

SplFileObject::rewind> <SplFileObject::key
[edit] Last updated: Fri, 25 May 2012

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
There are no user contributed notes for this page.

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