← All docs

stream_filter_register()

Registers a user-defined stream filter.

stream_filter_register()

function stream_filter_register(string $filter_name, string $class): bool

Registers a user-defined stream filter.

Parameters:

  • $filter_name (string)
  • $class (string)

Returns: bool

Availability

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

Internals

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