update : 2015.11.03
php.shukuma.com검색:
|
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
인수
반환값Returns 0 if the seek was successful, -1 otherwise. Note that seeking past EOF is not considered an error. 예제
Example #1 SplFileObject::fseek() example
<?php |