SplFileObject::ftell
Return current file position
Beschreibung
public int SplFileObject::ftell
( void
)
Parameter-Liste
Diese Funktion hat keine Parameter.
Rückgabewerte
Returns the position of the file pointer as an integer, or FALSE on error.
Beispiele
Beispiel #1 SplFileObject::ftell example
<?php
$file = new SplFileObject("/etc/passwd");
// Read first line
$data = $file->fgets();
// Where are we?
echo $file->ftell();
?>