Skip to content

Stream: seek Example

Terry L edited this page Jun 20, 2020 · 2 revisions
Clone this wiki locally

Shieldon\Psr7\Stream

seek($offset, $whence)

Seek to a position in the stream.

  • param int offset * Stream offset.
  • param int whence = SEEK_SET Specifies how the cursor position will be calculated based on the seek offset.
  • return void

Example:

// See eof() example.