php8.5
Home/ Manual/ com / compersisthelper/ COMPersistHelper::SaveToStream

COMPersistHelper::SaveToStream

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Save object to stream

Description

COMPersistHelper::SaveToStream(resource $stream): bool

Saves an object to the specified stream.

Parameters

stream

The stream Resource to which to save the object.

Return Values

Success

Errors/Exceptions

A com_exception is thrown if the associated object does neither implement the COM interface IPersistStream nor IPersistStreamInit, or when calling the IPersistStream::Save method failed.

Source: reference/com/compersisthelper/savetostream.xml · from the official PHP manual (php/doc-en)