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

search for in the

SplTempFileObject> <SplFileObject::__toString
[edit] Last updated: Fri, 17 May 2013

view this page in

SplFileObject::valid

(PHP 5 >= 5.1.0)

SplFileObject::validNot at EOF

Beschreibung

public bool SplFileObject::valid ( void )

Check whether EOF has been reached.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns TRUE if not reached EOF, FALSE otherwise.

Beispiele

Beispiel #1 SplFileObject::valid() example

<?php
// Loop over a file, line by line
$file = new SplFileObject("file.txt");
while (
$file->valid()) {
    echo 
$file->fgets();
}
?>

Siehe auch



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

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