PHP » GoLang |
login |
register |
about
|
fseek(PHP 4, PHP 5, PHP 7) fseek — Seeks on a file pointer Description
int fseek
( resource
$handle
, 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 ValuesUpon success, returns 0; otherwise, returns -1. Examples
Example #1 fseek() example
<?php Notes
|
more
Recently updated
more
Most requested
more
Last requests
|