略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: php_user_filter

2024-11-15

The php_user_filter class

(PHP 5, PHP 7, PHP 8)

简介

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 php_user_filter {
/* 属性 */
public string $filtername = "";
public mixed $params = "";
public ?resource $stream = null;
/* 方法 */
public filter(
    resource $in,
    resource $out,
    int &$consumed,
    bool $closing
): int
public onClose(): void
public onCreate(): bool
}

属性

filtername

Name of the filter registered by stream_filter_append().

params

stream

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.php-user-filter.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3