The php_user_filter class

(PHP 5, PHP 7, PHP 8)

Introduction

Children of this class are passed to stream_filter_register(). Note that the __construct method is not called; instead, php_user_filter::onCreate() should be used for initialization.

Class synopsis

class php_user_filter {
/* Properties */
public string $filtername = "";
public mixed $params = "";
public ?resource $stream = null;
/* Methods */
public filter(
    resource $in,
    resource $out,
    int &$consumed,
    bool $closing
): int
public onClose(): void
public onCreate(): bool
}

Properties

filtername

Name of the filter registered by stream_filter_append().

params

stream

Table of Contents

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant