← All docs

stream_filter_append()

Attaches a filter to a stream.

stream_filter_append()

function stream_filter_append(resource $stream, string $filtername, int $read_write = 3, mixed $params = null): mixed

Attaches a filter to a stream.

Parameters:

  • $stream (resource)
  • $filtername (string)
  • $read_write (int), default 3, optional
  • $params (mixed), default null, optional

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_filter_append is implemented in the compiler, see the internals page.