PHP streamWrapper __destruct() Method
The PHP streamWrapper::__destruct() method destructs an existing stream wrapper. This method is called when closing the stream wrapper, right before the streamWrapper::stream_flush() method.
Syntax
public streamWrapper::__destruct()
Parameters
No parameter is required.
Return Value
No value is returned.
❮ PHP Streams Reference