WordPress\AiClientDependencies\Psr\Http\Message

StreamFactoryInterface::createStreamFromFile │ public │ WP 1.0

Create a stream from an existing file.

The file MUST be opened using the given mode, which may be any mode supported by the fopen function.

The $filename MAY be any string supported by fopen().

Метод класса: StreamFactoryInterface{}

Хуков нет.

Возвращает

StreamInterface.

Использование

$StreamFactoryInterface = new StreamFactoryInterface();
$StreamFactoryInterface->createStreamFromFile( $filename, $mode ): StreamInterface;
$filename(строка) (обязательный)
Filename or stream URI to use as basis of stream.
$mode(строка)
Mode with which to open the underlying filename/stream.
По умолчанию: 'r'

Код StreamFactoryInterface::createStreamFromFile() WP 7.1.4

public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface;