SplFileObject::fseek(PHP 5 >= 5.1.0) SplFileObject::fseek — Seek to a position Описание
public int SplFileObject::fseek
( int $offset
[, int $whence = SEEK_SET
] )
Seek to a position in the file measured in bytes from the beginning of the file, obtained by adding offset to the position specified by whence. Список параметров
Возвращаемые значенияReturns 0 if the seek was successful, -1 otherwise. Note that seeking past EOF is not considered an error. Примеры
Пример #1 SplFileObject::fseek() example
<?php |
||