PHP Function Reference

PHP php_user_filter class

The children of PHP php_user_filter class are passed to stream_filter_register(). Note that the __construct method is not called. Instead, php_user_filter::onCreate() is used for initialization of the filter class.

Class synopsis

class php_user_filter {
  public $filtername;
  public $params;

  public filter(
      resource $in,
      resource $out,
      int &$consumed,
      bool $closing
  ): int
  public onClose(): void
  public onCreate(): bool


filtername Specify the name of the filter registered by stream_filter_append().

❮ PHP Streams Reference