php8.5
Home/ Manual/ stream / php_user_filter/ php_user_filter::onClose

php_user_filter::onClose

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Called when closing the filter

Description

php_user_filter::onClose(): void

This method is called upon filter shutdown (typically, this is also during stream shutdown), and is executed after the flush method is called. If any resources were allocated or initialized during onCreate() this would be the time to destroy or dispose of them.

Parameters Parameters

Return Values

Return value is ignored.

Source: reference/stream/php_user_filter/onclose.xml · from the official PHP manual (php/doc-en)