WordPress\AiClientDependencies\Psr\Http\Message
StreamFactoryInterface::createStreamFromResource
Create a new stream from an existing resource.
The stream MUST be readable and may be writable.
Method of the class: StreamFactoryInterface{}
No Hooks.
Returns
StreamInterface.
Usage
$StreamFactoryInterface = new StreamFactoryInterface(); $StreamFactoryInterface->createStreamFromResource( $resource ): StreamInterface;
- $resource(resource) (required)
- PHP resource to use as basis of stream.
StreamFactoryInterface::createStreamFromResource() StreamFactoryInterface::createStreamFromResource code WP 7.0
public function createStreamFromResource($resource): StreamInterface;