CodeIgniter v4.6 API

PhpStreamWrapper
in package

FinalYes

StreamWrapper for php protocol

This class is used for mocking php://stdin.

See https://www.php.net/manual/en/class.streamwrapper.php

Table of Contents

Properties

$context  : resource|null
$content  : string
$position  : int

Methods

register()  : mixed
restore()  : mixed
setContent()  : mixed
stream_eof()  : bool
stream_open()  : bool
stream_read()  : string
stream_stat()  : array{}

Properties

Methods

setContent()

public static setContent(string $content) : mixed
Parameters
$content : string

stream_read()

public stream_read(int $count) : string
Parameters
$count : int
Return values
string

        
On this page

Search results