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 {
  //Properties
  public $filtername;
  public $params;

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

Properties

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


❮ PHP Streams Reference