|
fseekSeeks on a file pointer Description
int fseek(resource
$stream, int $offset, int $whence = SEEK_SET)
Sets the file position indicator for the file referenced by
In general, it is allowed to seek past the end-of-file; if data is then written, reads in any unwritten region between the end-of-file and the sought position will yield bytes with value 0. However, certain streams may not support this behavior, especially when they have an underlying fixed size storage. Parameters
Return Values
Upon success, returns Warning
This function was created to imitate the C language function of the same name. Please pay attention to the return values as they differ from what one would expect in PHP. Examples
Example #1 fseek example Notes
See Also
|